Skip to content

Commit 760c77c

Browse files
committed
host.main_sr: don't return "<not in database>" as UUID on missing default-SR
Signed-off-by: Yann Dirson <[email protected]>
1 parent 22a76e3 commit 760c77c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/host.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ def main_sr(self):
480480
else:
481481
sr_uuid = self.pool.param_get('default-SR')
482482
assert sr_uuid, f"DEFAULT_SR='default' so there must be a default SR on the pool of host {self}"
483+
assert sr_uuid != "<not in database>"
483484
return sr_uuid
484485

485486
def hostname(self):

0 commit comments

Comments
 (0)