storage: Fix validating empty hosts value (bz #1557942)
https://bugzilla.redhat.com/show_bug.cgi?id=1557942
This commit is contained in:
parent
bf458c2274
commit
3d34f6a231
|
@ -480,7 +480,7 @@ class StoragePool(_StorageObject):
|
|||
##################
|
||||
|
||||
def validate(self):
|
||||
if self.supports_property("host") and not self.hosts:
|
||||
if self.supports_property("hosts") and not self.hosts:
|
||||
raise RuntimeError(_("Hostname is required"))
|
||||
if (self.supports_property("source_path") and
|
||||
self.type != self.TYPE_LOGICAL and
|
||||
|
|
Loading…
Reference in New Issue