summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-09-28 16:54:22 -0400
committerScott Moser <smoser@ubuntu.com>2012-09-28 16:54:22 -0400
commitd285a0463b6d16487eb5859373ccfd27eaec8b90 (patch)
treef39adcd85db056b55fcd0439b175acf35411c2bf /cloudinit
parentf1e3ae3c49b9424a7e3cdbf835651720cc60e143 (diff)
downloadvyos-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.py2
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():