summaryrefslogtreecommitdiff
path: root/virtinst/storage.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2016-04-18 16:42:12 -0400
committerCole Robinson <crobinso@redhat.com>2016-04-18 16:42:12 -0400
commitf4dfb6de9de8e128c45560ff2118287aaef98e3a (patch)
tree1e3260dd046c3fcefbd0692c5f0cdd412b7dd541 /virtinst/storage.py
parent694d5bb9cec705fa638b8c58f44468b11f35cbcf (diff)
downloadvirt-manager-f4dfb6de9de8e128c45560ff2118287aaef98e3a.tar.gz
Fix recent pylint/pep8 output
Diffstat (limited to 'virtinst/storage.py')
-rw-r--r--virtinst/storage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/virtinst/storage.py b/virtinst/storage.py
index c30bec98..801ce268 100644
--- a/virtinst/storage.py
+++ b/virtinst/storage.py
@@ -471,7 +471,7 @@ class StoragePool(_StorageObject):
if self.supports_property("host") and not self.hosts:
raise RuntimeError(_("Hostname is required"))
if (self.supports_property("source_path") and
- not self.type == self.TYPE_LOGICAL and
+ self.type != self.TYPE_LOGICAL and
not self.source_path):
raise RuntimeError(_("Source path is required"))
@@ -820,7 +820,7 @@ class StorageVolume(_StorageObject):
vol.info()
break
except:
- if time:
+ if time: # pylint: disable=using-constant-test
# This 'if' check saves some noise from the test suite
time.sleep(.2)
if self._install_finished: