mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Add - (non-empty) Record._octodns dict to YAML file output.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user