diff options
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index 64007211..5bf8e8b2 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -292,10 +292,10 @@ def read_conf_d(confd): confs = sorted(os.listdir(confd),reverse=True) # remove anything not ending in '.cfg' - confs = filter(lambda f: f.endswith(".cfg"), confs) + confs = [f for f in confs if f.endswith(".cfg")] # remove anything not a file - confs = filter(lambda f: os.path.isfile("%s/%s" % (confd,f)),confs) + confs = [f for f in confs if os.path.isfile("%s/%s" % (confd,f))] cfg = { } for conf in confs: |