diff options
author | Joshua Powers <josh.powers@canonical.com> | 2020-06-02 09:06:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 12:06:07 -0400 |
commit | d53921ea3396c8301c65cad3abf04b4542d4b7a0 (patch) | |
tree | d19c4271786853d2da050749dc5a65dc95878327 /tests/unittests/test_handler/test_handler_puppet.py | |
parent | 5f7825e22241423322dbe628de1b00289cf34114 (diff) | |
download | vyos-cloud-init-d53921ea3396c8301c65cad3abf04b4542d4b7a0.tar.gz vyos-cloud-init-d53921ea3396c8301c65cad3abf04b4542d4b7a0.zip |
test: fix all flake8 E121 and E123 errors (#404)
This fixes issues with closing brackets not matching the opening
bracket's line and continuation line under-idented for hanging indent.
Diffstat (limited to 'tests/unittests/test_handler/test_handler_puppet.py')
-rw-r--r-- | tests/unittests/test_handler/test_handler_puppet.py | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/tests/unittests/test_handler/test_handler_puppet.py b/tests/unittests/test_handler/test_handler_puppet.py index 04aa7d03..2506d18a 100644 --- a/tests/unittests/test_handler/test_handler_puppet.py +++ b/tests/unittests/test_handler/test_handler_puppet.py @@ -149,15 +149,20 @@ class TestPuppetHandle(CiTestCase): mycloud.distro = mock.MagicMock() cfg = { 'puppet': { - 'csr_attributes': { - 'custom_attributes': { - '1.2.840.113549.1.9.7': '342thbjkt82094y0ut' - 'hhor289jnqthpc2290'}, - 'extension_requests': { - 'pp_uuid': 'ED803750-E3C7-44F5-BB08-41A04433FE2E', - 'pp_image_name': 'my_ami_image', - 'pp_preshared_key': '342thbjkt82094y0uthhor289jnqthpc2290'} - }}} + 'csr_attributes': { + 'custom_attributes': { + '1.2.840.113549.1.9.7': + '342thbjkt82094y0uthhor289jnqthpc2290' + }, + 'extension_requests': { + 'pp_uuid': 'ED803750-E3C7-44F5-BB08-41A04433FE2E', + 'pp_image_name': 'my_ami_image', + 'pp_preshared_key': + '342thbjkt82094y0uthhor289jnqthpc2290' + } + } + } + } csr_attributes = 'cloudinit.config.cc_puppet.' \ 'PUPPET_CSR_ATTRIBUTES_PATH' with mock.patch(csr_attributes, self.csr_attributes_path): |