We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b40aa commit be78351Copy full SHA for be78351
rockoon/tests/functional/masakari/base.py
@@ -56,7 +56,13 @@ def segment_add_host(
56
)
57
58
def segment_delete_host(self, host_name, segment_id):
59
- self.ocm.oc.instance_ha.delete_host(host_name, segment_id)
+ host_id = [
60
+ x
61
+ for x in self.ocm.oc.instance_ha.hosts(segment_id)
62
+ if x.name == host_name
63
+ ]
64
+ if host_id:
65
+ self.ocm.oc.instance_ha.delete_host(host_id[0].uuid, segment_id)
66
67
def get_notification_list(self):
68
return list(self.ocm.oc.instance_ha.notifications())
0 commit comments