From ef4a19658f354f1cb52b59c093d38d8448e26a70 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Thu, 26 Mar 2015 22:42:26 -0400 Subject: rad_pkg_data: return data, fix undefined variable --- cloudinit/config/cc_snappy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cloudinit/config') 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): -- cgit v1.2.3