If record_value="" write empty value to dns made easy
This is necessary for instance when setting CNAMEs that point to the root of the domain. This is different than leaving record_value out completely which has the same behaviour as before
This commit is contained in:
parent
1f09e32baa
commit
b79806d5d4
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ def main():
|
||||||
current_record = DME.getRecordByName(record_name)
|
current_record = DME.getRecordByName(record_name)
|
||||||
new_record = {'name': record_name}
|
new_record = {'name': record_name}
|
||||||
for i in ["record_value", "record_type", "record_ttl"]:
|
for i in ["record_value", "record_type", "record_ttl"]:
|
||||||
if module.params[i]:
|
if not module.params[i] is None:
|
||||||
new_record[i[len("record_"):]] = module.params[i]
|
new_record[i[len("record_"):]] = module.params[i]
|
||||||
|
|
||||||
# Compare new record against existing one
|
# Compare new record against existing one
|
||||||
|
|
Loading…
Reference in a new issue