diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-09-28 16:54:22 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-09-28 16:54:22 -0400 |
commit | d285a0463b6d16487eb5859373ccfd27eaec8b90 (patch) | |
tree | f39adcd85db056b55fcd0439b175acf35411c2bf /cloudinit | |
parent | f1e3ae3c49b9424a7e3cdbf835651720cc60e143 (diff) | |
download | vyos-cloud-init-d285a0463b6d16487eb5859373ccfd27eaec8b90.tar.gz vyos-cloud-init-d285a0463b6d16487eb5859373ccfd27eaec8b90.zip |
make DataSourceMAAS 'main()' use load_yaml
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/sources/DataSourceMAAS.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/DataSourceMAAS.py b/cloudinit/sources/DataSourceMAAS.py index 581e9a4b..c172150b 100644 --- a/cloudinit/sources/DataSourceMAAS.py +++ b/cloudinit/sources/DataSourceMAAS.py @@ -338,7 +338,7 @@ if __name__ == "__main__": if args.config: import yaml with open(args.config) as fp: - cfg = yaml.safe_load(fp) + cfg = util.load_yaml(fp.read()) if 'datasource' in cfg: cfg = cfg['datasource']['MAAS'] for key in creds.keys(): |