Commit 39f23930 authored by Yuto KAWAMURA(kawamuray)'s avatar Yuto KAWAMURA(kawamuray) Committed by Helga Velroyen
Browse files

Fix invalid use of RpcResult.Raise



Fix statements which using result.Raise in invalid form.
Change comma to '%' operator to provide a formatted string as these
lines originally expected.
Signed-off-by: default avatarYuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent faf97fd2
......@@ -176,7 +176,7 @@ class LUInstanceStartup(LogicalUnit):
self.instance.primary_node,
self.instance,
self.op.shutdown_timeout, self.op.reason)
result.Raise("Could not shutdown instance '%s'", self.instance.name)
result.Raise("Could not shutdown instance '%s'" % self.instance.name)
ShutdownInstanceDisks(self, self.instance)
......@@ -189,7 +189,7 @@ class LUInstanceStartup(LogicalUnit):
self.op.startup_paused, self.op.reason)
if result.fail_msg:
ShutdownInstanceDisks(self, self.instance)
result.Raise("Could not start instance '%s'", self.instance.name)
result.Raise("Could not start instance '%s'" % self.instance.name)
class LUInstanceShutdown(LogicalUnit):
......@@ -291,7 +291,7 @@ class LUInstanceShutdown(LogicalUnit):
self.instance.primary_node,
self.instance,
self.op.timeout, self.op.reason)
result.Raise("Could not shutdown instance '%s'", self.instance.name)
result.Raise("Could not shutdown instance '%s'" % self.instance.name)
ShutdownInstanceDisks(self, self.instance)
......
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