diff options
| -rw-r--r-- | cloudinit/sources/DataSourceAzure.py | 2 | ||||
| -rw-r--r-- | tests/unittests/test_util.py | 2 | 
2 files changed, 2 insertions, 2 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' % diff --git a/tests/unittests/test_util.py b/tests/unittests/test_util.py index bf9df561..4df1c912 100644 --- a/tests/unittests/test_util.py +++ b/tests/unittests/test_util.py @@ -626,7 +626,7 @@ class TestProcessExecutionError(helpers.TestCase):      def test_pexec_error_indent_text(self):          error = util.ProcessExecutionError()          msg = 'abc\ndef' -        formatted = 'abc\n{}def'.format(' ' * 4) +        formatted = 'abc\n{0}def'.format(' ' * 4)          self.assertEqual(error._indent_text(msg, indent_level=4), formatted)          self.assertEqual(error._indent_text(msg.encode(), indent_level=4),                           formatted.encode()) | 
