diff options
author | Joshua Harlow <jxharlow@godaddy.com> | 2016-12-02 14:31:05 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-12-02 14:31:05 -0500 |
commit | 3ac34f5325edf7f1212cd0b6a3d1cfe2ed45a63b (patch) | |
tree | 18cf4f3a6aa1d14f7073e18a1c561aca0c3ed6dd /cloudinit | |
parent | 2d2ec70f06015f0624f1d0d328cc97f1fb5c29de (diff) | |
download | vyos-cloud-init-3ac34f5325edf7f1212cd0b6a3d1cfe2ed45a63b.tar.gz vyos-cloud-init-3ac34f5325edf7f1212cd0b6a3d1cfe2ed45a63b.zip |
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.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/sources/DataSourceAzure.py | 2 |
1 files changed, 1 insertions, 1 deletions
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' % |