diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-03-26 22:42:26 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-03-26 22:42:26 -0400 |
commit | ef4a19658f354f1cb52b59c093d38d8448e26a70 (patch) | |
tree | 487d4426fd7e2bedd3ee7a0a945cd5231457bdaf /cloudinit | |
parent | d0eacf97c72b2613a3f1ce179e284d5aa98744dc (diff) | |
download | vyos-cloud-init-ef4a19658f354f1cb52b59c093d38d8448e26a70.tar.gz vyos-cloud-init-ef4a19658f354f1cb52b59c093d38d8448e26a70.zip |
rad_pkg_data: return data, fix undefined variable
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/config/cc_snappy.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/config/cc_snappy.py b/cloudinit/config/cc_snappy.py index adb25bc2..61c70f03 100644 --- a/cloudinit/config/cc_snappy.py +++ b/cloudinit/config/cc_snappy.py @@ -132,6 +132,7 @@ def read_installed_packages(): def read_pkg_data(): out, err = util.subp([SNAPPY_CMD, "list"]) + pkg_data = [] for line in out.splitlines()[1:]: toks = line.split(sep=None, maxsplit=3) if len(toks) == 3: @@ -139,7 +140,8 @@ def read_pkg_data(): dev = None else: (name, date, version, dev) = toks - pkgs.append((name, date, version, dev,)) + pkg_data.append((name, date, version, dev,)) + return pkg_data def disable_enable_ssh(enabled): |