Double-quote all strings in astute.yaml

Puppet sometimes interprets a mac address as a
numeric value and not a string. For this reason,
it is necessary to enclose all values in quotes
to avoid this issue.

Change-Id: I68e3d558768d9f0afe7b8a60d9360cf257c92340
Closes-Bug: #1454708
This commit is contained in:
Matthew Mosesohn 2015-05-13 17:39:43 +03:00
parent a0ce9f05ac
commit afbcea1d49
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ class Settings():
settings.update(self.read(outfn))
settings.update(newvalues)
outfile = file(outfn, 'w')
yaml.dump(settings, outfile, default_flow_style=False)
yaml.dump(settings, outfile, default_style='"',
default_flow_style=False)
return True
if __name__ == '__main__':