From 7cbfa09833eba27eed5dafaf5fd335dc64bbc49e Mon Sep 17 00:00:00 2001 From: sbbroot <86356638+sbbroot@users.noreply.github.com> Date: Thu, 29 Sep 2022 11:13:54 +0200 Subject: [PATCH] Fix epicli apply when there is no k8s component used (#3280) (#3282) * This bug has been recently introduced in PR #3268 --- cli/src/commands/Apply.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/src/commands/Apply.py b/cli/src/commands/Apply.py index be3a59b87f..a3e58301a9 100644 --- a/cli/src/commands/Apply.py +++ b/cli/src/commands/Apply.py @@ -110,7 +110,9 @@ def collect_infrastructure_config(self): with provider_class_loader(self.output_mhandler.cluster_model.provider, 'InfrastructureConfigCollector')(self.output_mhandler.docs) as config_collector: - self.output_mhandler.update_doc(config_collector.run()) # update kubernetes config doc + kube_doc = config_collector.run() + if kube_doc: + self.output_mhandler.update_doc(kube_doc) # update kubernetes config doc # Save manifest again as we have some new information for Ansible apply self.output_mhandler.write_manifest()