Commit 9b4127eb authored by Guido Trotter's avatar Guido Trotter
Browse files

cmdlib._CreateDisks fix a broken result.Raise



The format string has the ": %s" at the end, but no argument is passed,
which of course raises a TypeError. Removing ": %s" as it's added by
the RpcResult Raise() method anyway.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 350ecfec
...@@ -5207,7 +5207,7 @@ def _CreateDisks(lu, instance, to_skip=None, target_node=None): ...@@ -5207,7 +5207,7 @@ def _CreateDisks(lu, instance, to_skip=None, target_node=None):
result = lu.rpc.call_file_storage_dir_create(pnode, file_storage_dir) result = lu.rpc.call_file_storage_dir_create(pnode, file_storage_dir)
result.Raise("Failed to create directory '%s' on" result.Raise("Failed to create directory '%s' on"
" node %s: %s" % (file_storage_dir, pnode)) " node %s" % (file_storage_dir, pnode))
# Note: this needs to be kept in sync with adding of disks in # Note: this needs to be kept in sync with adding of disks in
# LUSetInstanceParams # LUSetInstanceParams
......
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