local variable 'assigned_hosts_string' referenced before assignment
This commit is contained in:
parent
ba997bb3ff
commit
f8e187ff84
@ -228,8 +228,8 @@ class CapsulFlaskHub(VirtualizationInterface):
|
|||||||
# no need to do anything here since if it cant be parsed then generic_operation will handle it.
|
# no need to do anything here since if it cant be parsed then generic_operation will handle it.
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if number_of_assigned != 1:
|
|
||||||
assigned_hosts_string = ", ".join(assigned_hosts)
|
assigned_hosts_string = ", ".join(assigned_hosts)
|
||||||
|
if number_of_assigned != 1:
|
||||||
raise ValueError(f"expected create capsul operation {operation_id} to be assigned to one host, it was assigned to {number_of_assigned} ({assigned_hosts_string})")
|
raise ValueError(f"expected create capsul operation {operation_id} to be assigned to one host, it was assigned to {number_of_assigned} ({assigned_hosts_string})")
|
||||||
if error_message != "":
|
if error_message != "":
|
||||||
raise ValueError(f"create capsul operation {operation_id} on {assigned_hosts_string} failed with {error_message}")
|
raise ValueError(f"create capsul operation {operation_id} on {assigned_hosts_string} failed with {error_message}")
|
||||||
|
Loading…
Reference in New Issue
Block a user