summaryrefslogtreecommitdiff
path: root/virtinst/storage.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2017-05-05 14:21:15 -0400
committerCole Robinson <crobinso@redhat.com>2017-05-05 14:53:28 -0400
commita90d6753946761c032c93d7b4d82d9e3f40d9993 (patch)
tree0ccaff77b142672158e0cad9d2b410e844596d82 /virtinst/storage.py
parentf551d7e55deebfca737f94f80639556f0c91339c (diff)
downloadvirt-manager-a90d6753946761c032c93d7b4d82d9e3f40d9993.tar.gz
Switch deprecating log.warn to log.warning
Same semantics, but the alias is deprecated
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 1526b342..a6963d50 100644
--- a/virtinst/storage.py
+++ b/virtinst/storage.py
@@ -787,7 +787,7 @@ class StorageVolume(_StorageObject):
def validate(self):
if self._pool_xml.type == StoragePool.TYPE_LOGICAL:
if self.allocation != self.capacity:
- logging.warn(_("Sparse logical volumes are not supported, "
+ logging.warning(_("Sparse logical volumes are not supported, "
"setting allocation equal to capacity"))
self.allocation = self.capacity
@@ -795,7 +795,7 @@ class StorageVolume(_StorageObject):
if isfatal:
raise ValueError(errmsg)
if errmsg:
- logging.warn(errmsg)
+ logging.warning(errmsg)
def install(self, meter=None):
"""