Eduardo has uploaded a new change for review.
Change subject: Fix getPools comment.
......................................................................
Fix getPools comment.
Change-Id: Iadfcf0c5d3fb53f3fb0c7aa48f43052bb4a618c9
Signed-off-by: Eduardo <ewarszaw(a)redhat.com>
---
M vdsm/storage/sd.py
1 file changed, 6 insertions(+), 6 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/14/14014/1
diff --git a/vdsm/storage/sd.py b/vdsm/storage/sd.py
index 678e360..445a3ca 100644
--- a/vdsm/storage/sd.py
+++ b/vdsm/storage/sd.py
@@ -434,14 +434,14 @@
def getPools(self):
try:
pools = self.getMetaParam(key=DMDK_POOLS)
- # This is here because someone thought it would be smart
- # to put blank uuids in this field. Remove when you can be
- # sure no old MD will pop up and surprise you
+ except KeyError:
+ pools = []
+ else:
+ # Old pool MD marked SDs not belonging to any pool with
+ # BLANK_UUID as the pool uuid.
if BLANK_UUID in pools:
pools.remove(BLANK_UUID)
- return pools
- except KeyError:
- return []
+ return pools
def getIdsFilePath(self):
return os.path.join(self.getMDPath(), IDS)
--
To view, visit http://gerrit.ovirt.org/14014
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iadfcf0c5d3fb53f3fb0c7aa48f43052bb4a618c9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Eduardo <ewarszaw(a)redhat.com>
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [Add]: Added unit test libvirtvmTests.py:TestLibvirtvm.testBuildCmdLine [Mod]: fixed code guide issues Signed-off-by: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com> Change-Id: I74b898a6398a72608d7933009644703aa3f8d831
......................................................................
Patch Set 1:
Build Successful
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/2083/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/2026/ : SUCCESS
--
To view, visit http://gerrit.ovirt.org/14111
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I74b898a6398a72608d7933009644703aa3f8d831
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: [Add]: Added unit test libvirtvmTests.py:TestLibvirtvm.testBuildCmdLine [Mod]: fixed code guide issues Signed-off-by: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com> Change-Id: I74b898a6398a72608d7933009644703aa3f8d831
......................................................................
Patch Set 1:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/2083/ (2/2)
--
To view, visit http://gerrit.ovirt.org/14111
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I74b898a6398a72608d7933009644703aa3f8d831
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maciej Lichon <maciej.lichon.wroclaw(a)gmail.com>
Gerrit-Reviewer: oVirt Jenkins CI Server