Commit 1492cca7 authored by Iustin Pop's avatar Iustin Pop
Browse files

Some small fixes in cmdlib

Reviewed-by: ultrotter
parent 20e01edd
......@@ -1495,8 +1495,7 @@ def _WaitForSync(lu, instance, oneshot=False, unlock=False):
rstats =
retries = 0
for i in range(len(rstats)):
mstat = rstats[i]
for i, mstat in enumerate(rstats):
if mstat is None:
lu.LogWarning("Can't compute data for node %s/%s",
node, instance.disks[i].iv_name)
......@@ -5041,7 +5040,7 @@ class LUReplaceDisks(LogicalUnit):
_CreateSingleBlockDev(self, new_node, instance, new_drbd,
_GetInstanceInfoText(instance), False)
except error.BlockDeviceError:
except errors.BlockDeviceError:
......@@ -5705,7 +5704,7 @@ class LUSetInstanceParams(LogicalUnit):
_CreateBlockDev(self, node, instance, new_disk,
f_create, info, f_create)
except error.OpExecError, err:
except errors.OpExecError, err:
self.LogWarning("Failed to create volume %s (%s) on"
" node %s: %s",
new_disk.iv_name, new_disk, node, err)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment