Commit 1c6e3627 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

Two small code style fixes

Reviewed-by: imsnah
parent 45873083
......@@ -2883,7 +2883,7 @@ def _CreateDisks(cfg, instance):
for device in instance.disks:
logger.Info("creating volume %s for instance %s" %
(device.iv_name, instance.name))
(device.iv_name, instance.name))
#HARDCODE
for secondary_node in instance.secondary_nodes:
if not _CreateBlockDevOnSecondary(cfg, secondary_node, instance,
......@@ -2897,6 +2897,7 @@ def _CreateDisks(cfg, instance):
logger.Error("failed to create volume %s on primary!" %
device.iv_name)
return False
return True
......
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