diff --git a/nise/__init__.py b/nise/__init__.py index bad76ba7..cdfadf8e 100644 --- a/nise/__init__.py +++ b/nise/__init__.py @@ -1,3 +1,3 @@ -__version__ = "4.4.0" +__version__ = "4.4.1" VERSION = __version__.split(".") diff --git a/nise/generators/ocp/ocp_generator.py b/nise/generators/ocp/ocp_generator.py index d1e975bb..d1403c84 100644 --- a/nise/generators/ocp/ocp_generator.py +++ b/nise/generators/ocp/ocp_generator.py @@ -356,7 +356,7 @@ def _gen_pods(self, namespaces): for namespace, node in namespaces.items(): namespace2pod[namespace] = [] if node.get("namespaces"): - specified_pods = node.get("namespaces").get(namespace).get("pods") + specified_pods = node.get("namespaces").get(namespace).get("pods") or [] for specified_pod in specified_pods: pod = specified_pod.get("pod_name", self.fake.word()) namespace2pod[namespace].append(pod)