Skip to content

Commit be0b7da

Browse files
committed
handle error: storage belongs to different cluster
1 parent f1ecb80 commit be0b7da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/ha_tests/test_self_healing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,13 @@ async def test_deploy_zero_units(ops_test: OpsTest):
589589
unit_ip_addresses.append(await get_unit_ip(ops_test, unit.name))
590590

591591
# Save detached storage ID
592-
if await unit.is_leader_from_status:
592+
if await unit.is_leader_from_status():
593593
primary_storage = storage_id(ops_test, unit.name)
594594

595595
logger.info(f"get storage id app: {SECOND_APPLICATION}")
596596
second_storage = ""
597597
for unit in ops_test.model.applications[SECOND_APPLICATION].units:
598-
if await unit.is_leader_from_status:
598+
if await unit.is_leader_from_status():
599599
second_storage = storage_id(ops_test, unit.name)
600600
break
601601

0 commit comments

Comments
 (0)