From 3ac34f5325edf7f1212cd0b6a3d1cfe2ed45a63b Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 2 Dec 2016 14:31:05 -0500 Subject: fix problems found in python2.6 test. These are just simple syntax fixes to work correctly on python2.6. Found when testing in a centos 6 container. --- cloudinit/sources/DataSourceAzure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/sources') diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py index af5d43b0..c46cd076 100644 --- a/cloudinit/sources/DataSourceAzure.py +++ b/cloudinit/sources/DataSourceAzure.py @@ -305,7 +305,7 @@ def can_dev_be_reformatted(devpath): return False, msg def count_files(mp): - ignored = {'dataloss_warning_readme.txt'} + ignored = set(['dataloss_warning_readme.txt']) return len([f for f in os.listdir(mp) if f.lower() not in ignored]) bmsg = ('partition 1 (%s -> %s) on device %s was ntfs formatted' % -- cgit v1.2.3