Skip to content

Commit 3501307

Browse files
committed
fix(Host): use pre-parsed inventory for dom0
Signed-off-by: Damien Thenot <[email protected]>
1 parent d5f4213 commit 3501307

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/host.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,7 @@ def disable_hsts_header(self):
685685
self.restart_toolstack(verify=True)
686686

687687
def get_dom0_uuid(self):
688-
output = self.ssh(["grep", "-e", "\"CONTROL_DOMAIN_UUID=\"", "/etc/xensource-inventory"])
689-
return output.split("=")[1].replace("'", "")
688+
return self.inventory["CONTROL_DOMAIN_UUID"]
690689

691690
def get_sr_from_vdi_uuid(self, vdi_uuid) -> Optional[SR]:
692691
sr_uuid = self.xe("vdi-param-get",

0 commit comments

Comments
 (0)