dump using safeyaml
This commit is contained in:
parent
f0d6beba63
commit
0189965949
|
@ -20,10 +20,13 @@ import platform
|
|||
import sys
|
||||
import traceback
|
||||
import urwid
|
||||
import yaml
|
||||
|
||||
import apport.hookutils
|
||||
|
||||
from cloudinit import safeyaml
|
||||
|
||||
import yaml
|
||||
|
||||
from subiquitycore.async_helpers import (
|
||||
run_in_thread,
|
||||
schedule_task,
|
||||
|
@ -157,7 +160,7 @@ class Subiquity(Application):
|
|||
if 'autoinstall' in cfg:
|
||||
atomic_helper.write_file(
|
||||
self.opts.autoinstall,
|
||||
yaml.dump(cfg['autoinstall']),
|
||||
safeyaml.dumps(cfg['autoinstall']),
|
||||
mode=0o600)
|
||||
if os.path.exists(self.opts.autoinstall):
|
||||
with open(self.opts.autoinstall) as fp:
|
||||
|
|
Loading…
Reference in New Issue