storage: Fix validating empty hosts value (bz #1557942)

https://bugzilla.redhat.com/show_bug.cgi?id=1557942
This commit is contained in:
Cole Robinson 2018-03-19 10:29:00 -04:00
parent bf458c2274
commit 3d34f6a231
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ class StoragePool(_StorageObject):
################## ##################
def validate(self): 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")) raise RuntimeError(_("Hostname is required"))
if (self.supports_property("source_path") and if (self.supports_property("source_path") and
self.type != self.TYPE_LOGICAL and self.type != self.TYPE_LOGICAL and