diff options
author | Andrew Jorgensen <ajorgens@amazon.com> | 2014-12-05 14:34:10 -0800 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-06-15 13:20:58 -0400 |
commit | 0fe6a0607408d387f4b0d4482b95afbc5d3f3909 (patch) | |
tree | e93fe72e4dd1b27d1331ae70c16042b8ecadc2ee /tests/unittests/test_datasource | |
parent | b23d9d7c5c112612dbaaf8c8371c9e735500b2eb (diff) | |
download | vyos-cloud-init-0fe6a0607408d387f4b0d4482b95afbc5d3f3909.tar.gz vyos-cloud-init-0fe6a0607408d387f4b0d4482b95afbc5d3f3909.zip |
write_file(s): Print permissions as octal, not decimal
Unix file modes are usually represented as octal, but they were being
interpreted as decimal, for example 0o644 would be printed as '420'.
Reviewed-by: Tom Kirchner <tjk@amazon.com>
Diffstat (limited to 'tests/unittests/test_datasource')
-rw-r--r-- | tests/unittests/test_datasource/test_azure.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/test_datasource/test_azure.py b/tests/unittests/test_datasource/test_azure.py index 42f49e06..b17f389c 100644 --- a/tests/unittests/test_datasource/test_azure.py +++ b/tests/unittests/test_datasource/test_azure.py @@ -263,7 +263,8 @@ fdescfs /dev/fd fdescfs rw 0 0 {}, distro=None, paths=self.paths) self.assertFalse(dsrc.get_data()) self.assertEqual( - "Non-Azure DMI asset tag '{0}' discovered.\n".format(nonazure_tag), + "DEBUG: Non-Azure DMI asset tag '{0}' discovered.\n".format( + nonazure_tag), self.logs.getvalue()) def test_basic_seed_dir(self): |