From 9b4127eba6c861903507aeccdcae6d2382d7868f Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Mon, 21 Sep 2009 11:13:43 +0100 Subject: [PATCH] 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: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/cmdlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 447a0b0a6..f1a69e6b7 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -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.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 # LUSetInstanceParams -- GitLab