Skip to content

Commit 8662b7c

Browse files
fixed no floating ip bug on early crashes
1 parent 41a334e commit 8662b7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bibigrid/core/actions/create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,9 +573,9 @@ def create(self): # pylint: disable=too-many-branches,too-many-statements
573573
else:
574574
return 0 # will be called if no exception occurred
575575
terminate.terminate(cluster_id=self.cluster_id, providers=self.providers, log=self.log, debug=self.debug)
576-
self.write_cluster_state({"floating_ip": self.configurations[0]["floating_ip"],
576+
self.write_cluster_state({"floating_ip": self.configurations[0].get("floating_ip"),
577577
"state": "failed",
578-
"message": "Cluster creation failed. Terminated remains."})
578+
"message": f"Cluster creation failed. Terminated remains."})
579579
return 1
580580

581581
def log_cluster_start_info(self):

0 commit comments

Comments
 (0)