diff options
Diffstat (limited to 'debian/cloud-init.postinst')
-rw-r--r-- | debian/cloud-init.postinst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/cloud-init.postinst b/debian/cloud-init.postinst index 268f3ec8..079b429d 100644 --- a/debian/cloud-init.postinst +++ b/debian/cloud-init.postinst @@ -38,10 +38,10 @@ def update(src, cand): REMOVER = object if len(sys.argv) == 5: REMOVER = sys.argv[4] -newcfg = yaml.load(newyaml) +newcfg = yaml.safe_load(newyaml) with open(fname, "r") as fp: - cfg = yaml.load(fp) + cfg = yaml.safe_load(fp) if not cfg: cfg = {} cfg = update(cfg, newcfg) |