From 817df42d3853106396f2c505fd26a695b663d7ea Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 25 Aug 2016 13:10:45 -0700 Subject: python2.6: fix dict comprehension usage in _lsb_release. This syntax doesn't work in python 2.6 --- cloudinit/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/util.py') 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 -- cgit v1.2.3