Skip to content

Commit

Permalink
Fix epicli apply when there is no k8s component used (#3280) (#3282)
Browse files Browse the repository at this point in the history
* This bug has been recently introduced in PR #3268
  • Loading branch information
sbbroot authored Sep 29, 2022
1 parent 9845ad2 commit 7cbfa09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/src/commands/Apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7cbfa09

Please sign in to comment.