Add - (non-empty) Record._octodns dict to YAML file output.

This commit is contained in:
Matt
2018-11-04 10:32:06 +11:00
parent 6ec5bd4da2
commit 933a56d8f9
+2
View File
@@ -89,6 +89,8 @@ class YamlProvider(BaseProvider):
if record.ttl == self.default_ttl:
# ttl is the default, we don't need to store it
del d['ttl']
if record._octodns:
d['octodns'] = record._octodns
data[record.name].append(d)
# Flatten single element lists