[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 1/2] Fix a typo in action sorting for resize actions (fs vs. device). (#501000)



---
 storage/devicetree.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 3dce7be..ac297ec 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -548,7 +548,7 @@ class DeviceTree(object):
                 ret = 1
             elif a1.isResize() and a2.isResize():
                 if a1.device.path == a2.device.path:
-                    if a1.obj and a2.obj:
+                    if a1.obj == a2.obj:
                         ret = 0
                     elif a1.isFormat() and not a2.isFormat():
                         # same path, one device, one format
-- 
1.6.0.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]