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 <[email protected]>
---
 lib/cmdlib.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index 447a0b0..f1a69e6 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
-- 
1.6.3.3

Reply via email to