[blivet:master 19/25] Use isResize in isShrink and isGrow.
mulhern
amulhern at redhat.com
Wed Apr 16 21:54:40 UTC 2014
Similar to resizeString
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/deviceaction.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/deviceaction.py b/blivet/deviceaction.py
index 4a50a1a..a95f8a5 100644
--- a/blivet/deviceaction.py
+++ b/blivet/deviceaction.py
@@ -176,11 +176,11 @@ class DeviceAction(util.ObjectID):
@property
def isShrink(self):
- return (self.type == ACTION_TYPE_RESIZE and self.dir == RESIZE_SHRINK)
+ return (self.isResize and self.dir == RESIZE_SHRINK)
@property
def isGrow(self):
- return (self.type == ACTION_TYPE_RESIZE and self.dir == RESIZE_GROW)
+ return (self.isResize and self.dir == RESIZE_GROW)
@property
def isAdd(self):
--
1.8.3.1
More information about the anaconda-patches
mailing list