summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/config/schema.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cloudinit/config/schema.py b/cloudinit/config/schema.py
index 5356f492..a295d63d 100644
--- a/cloudinit/config/schema.py
+++ b/cloudinit/config/schema.py
@@ -103,7 +103,10 @@ def validate_cloudconfig_schema(config, schema, strict=False):
cloudinitValidator = extend(Draft4Validator, type_checker=type_checker)
else: # jsonschema 2.6 workaround
types = Draft4Validator.DEFAULT_TYPES
- types['string'] = (str, bytes) # Allow bytes as well as string
+ # 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(
meta_schema=Draft4Validator.META_SCHEMA,
validators=Draft4Validator.VALIDATORS,