diff options
author | Paride Legovini <paride.legovini@canonical.com> | 2022-01-10 18:28:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 11:28:14 -0600 |
commit | 26de41a36ac6191f8a93e7ba40fea6ac3628b1e6 (patch) | |
tree | 00c48a52b3e4e0a7227951cdd69e2e3986d550b6 /cloudinit | |
parent | 19948dbaf40309355e1a2dbef116efb0ce66245c (diff) | |
download | vyos-cloud-init-26de41a36ac6191f8a93e7ba40fea6ac3628b1e6.tar.gz vyos-cloud-init-26de41a36ac6191f8a93e7ba40fea6ac3628b1e6.zip |
pylint: silence errors on compat code for old jsonschema (#1172)
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/config/schema.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/config/schema.py b/cloudinit/config/schema.py index 3a77ca00..f54cf18f 100644 --- a/cloudinit/config/schema.py +++ b/cloudinit/config/schema.py @@ -118,12 +118,12 @@ def get_jsonschema_validator(): type_checker=type_checker, ) else: # jsonschema 2.6 workaround - types = Draft4Validator.DEFAULT_TYPES + types = Draft4Validator.DEFAULT_TYPES # pylint: disable=E1101 # Allow bytes as well as string (and disable a spurious unsupported # assignment-operation pylint warning which appears because this # code path isn't written against the latest jsonschema). types["string"] = (str, bytes) # pylint: disable=E1137 - cloudinitValidator = create( + cloudinitValidator = create( # pylint: disable=E1123 meta_schema=strict_metaschema, validators=Draft4Validator.VALIDATORS, version="draft4", |