summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/config/cc_seed_random.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/config/cc_seed_random.py b/cloudinit/config/cc_seed_random.py
index acacb8f7..592d253f 100644
--- a/cloudinit/config/cc_seed_random.py
+++ b/cloudinit/config/cc_seed_random.py
@@ -63,6 +63,8 @@ def validate(cfg):
"""Method that can be used to ask if the given configuration will be
accepted as valid by this module, without having to actually activate this
module."""
+ if not cfg or "random_seed" not in cfg:
+ return
try:
jsonschema.validate(cfg, schema)
except js_exc.ValidationError as e: