From: Iustin Pop <[email protected]>
---
lib/client/gnt_instance.py | 2 +-
lib/cmdlib.py | 2 +-
lib/opcodes.py | 2 +-
lib/rapi/rlib2.py | 2 +-
tools/burnin | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/client/gnt_instance.py b/lib/client/gnt_instance.py
index 9c97aac..2d2fbbc 100644
--- a/lib/client/gnt_instance.py
+++ b/lib/client/gnt_instance.py
@@ -701,7 +701,7 @@ def _RebootInstance(name, opts):
@return: the opcode needed for the operation
"""
- return opcodes.OpRebootInstance(instance_name=name,
+ return opcodes.OpInstanceReboot(instance_name=name,
reboot_type=opts.reboot_type,
ignore_secondaries=opts.ignore_secondaries,
shutdown_timeout=opts.shutdown_timeout)
diff --git a/lib/cmdlib.py b/lib/cmdlib.py
index d6a9254..9d22779 100644
--- a/lib/cmdlib.py
+++ b/lib/cmdlib.py
@@ -5049,7 +5049,7 @@ class LUStartupInstance(LogicalUnit):
raise errors.OpExecError("Could not start instance: %s" % msg)
-class LURebootInstance(LogicalUnit):
+class LUInstanceReboot(LogicalUnit):
"""Reboot an instance.
"""
diff --git a/lib/opcodes.py b/lib/opcodes.py
index 7a0dd7c..2239f81 100644
--- a/lib/opcodes.py
+++ b/lib/opcodes.py
@@ -849,7 +849,7 @@ class OpShutdownInstance(OpCode):
]
-class OpRebootInstance(OpCode):
+class OpInstanceReboot(OpCode):
"""Reboot an instance."""
OP_ID = "OP_INSTANCE_REBOOT"
OP_DSC_FIELD = "instance_name"
diff --git a/lib/rapi/rlib2.py b/lib/rapi/rlib2.py
index 98dc70f..f06cbc8 100644
--- a/lib/rapi/rlib2.py
+++ b/lib/rapi/rlib2.py
@@ -972,7 +972,7 @@ class R_2_instances_name_reboot(baserlib.R_Generic):
reboot_type = self.queryargs.get('type',
[constants.INSTANCE_REBOOT_HARD])[0]
ignore_secondaries = bool(self._checkIntVariable('ignore_secondaries'))
- op = opcodes.OpRebootInstance(instance_name=instance_name,
+ op = opcodes.OpInstanceReboot(instance_name=instance_name,
reboot_type=reboot_type,
ignore_secondaries=ignore_secondaries,
dry_run=bool(self.dryRun()))
diff --git a/tools/burnin b/tools/burnin
index 4afef8d..611a7b9 100755
--- a/tools/burnin
+++ b/tools/burnin
@@ -832,7 +832,7 @@ class Burner(object):
Log("instance %s", instance, indent=1)
ops = []
for reboot_type in self.opts.reboot_types:
- op = opcodes.OpRebootInstance(instance_name=instance,
+ op = opcodes.OpInstanceReboot(instance_name=instance,
reboot_type=reboot_type,
ignore_secondaries=False)
Log("reboot with type '%s'", reboot_type, indent=2)
--
1.7.2.3