diff options
author | Joshua Harlow <jxharlow@godaddy.com> | 2016-08-25 13:10:45 -0700 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-08-25 22:32:38 -0400 |
commit | 817df42d3853106396f2c505fd26a695b663d7ea (patch) | |
tree | 7774b6bff65d020d8ca37ed907a54032239cb18c /cloudinit/util.py | |
parent | 6fce6db9a5fd75e2c398de0e0b4cd72a9f05a7a6 (diff) | |
download | vyos-cloud-init-817df42d3853106396f2c505fd26a695b663d7ea.tar.gz vyos-cloud-init-817df42d3853106396f2c505fd26a695b663d7ea.zip |
python2.6: fix dict comprehension usage in _lsb_release.
This syntax doesn't work in python 2.6
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index 9c89de61..7c37eb8f 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -113,7 +113,7 @@ def _lsb_release(target=None): except ProcessExecutionError as err: LOG.warn("Unable to get lsb_release --all: %s", err) - data = {v: "UNAVAILABLE" for v in fmap.values()} + data = dict((v, "UNAVAILABLE") for v in fmap.values()) return data |