diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-03-26 21:14:17 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-03-26 21:14:17 -0400 |
commit | bd7165dd67338f742f999fb2c53ec5f67fc66477 (patch) | |
tree | 9ac760a7d15e0dfb207afe0993e360a1336a9b55 /cloudinit/config | |
parent | a373e1097f6be460914e6cbbc897c6aa8e4aaefe (diff) | |
download | vyos-cloud-init-bd7165dd67338f742f999fb2c53ec5f67fc66477.tar.gz vyos-cloud-init-bd7165dd67338f742f999fb2c53ec5f67fc66477.zip |
start of snap_op tests
Diffstat (limited to 'cloudinit/config')
-rw-r--r-- | cloudinit/config/cc_snappy.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cloudinit/config/cc_snappy.py b/cloudinit/config/cc_snappy.py index bef8c170..cf441c92 100644 --- a/cloudinit/config/cc_snappy.py +++ b/cloudinit/config/cc_snappy.py @@ -114,11 +114,17 @@ def render_snap_op(op, name, path=None, cfgfile=None, config=None): elif op == 'config': cmd.append(cfgfile) + if op == 'install': + if path: + cmd.append(path) + else: + cmd.append(name) + util.subp(cmd) finally: - if tmpfile: - os.unlink(tmpfile) + if cfg_tmpf: + os.unlink(cfg_tmpf) def read_installed_packages(): |