Fix an unsafe formatting bug
[ganeti-local] / lib / mcpu.py
index a6014a1..1efe0b8 100644 (file)
@@ -50,6 +50,7 @@ class Processor(object):
     opcodes.OpVerifyDisks: cmdlib.LUVerifyDisks,
     opcodes.OpSetClusterParams: cmdlib.LUSetClusterParams,
     opcodes.OpRedistributeConfig: cmdlib.LURedistributeConfig,
+    opcodes.OpRepairDiskSizes: cmdlib.LURepairDiskSizes,
     # node lu
     opcodes.OpAddNode: cmdlib.LUAddNode,
     opcodes.OpQueryNodes: cmdlib.LUQueryNodes,
@@ -99,7 +100,7 @@ class Processor(object):
     """
     self.context = context
     self._feedback_fn = None
-    self.exclusive_BGL = False
+    self.exclusive_BGL = False # pylint: disable-msg=C0103
     self.rpc = rpc.RpcRunner(context.cfg)
 
   def _ExecLU(self, lu):
@@ -341,8 +342,7 @@ class HooksMaster(object):
         res = results[node_name]
         if res.failed or res.data is False or not isinstance(res.data, list):
           if not res.offline:
-            self.proc.LogWarning("Communication failure to node %s" %
-                                 node_name)
+            self.proc.LogWarning("Communication failure to node %s", node_name)
           continue
         for script, hkr, output in res.data:
           if hkr == constants.HKR_FAIL:
@@ -361,4 +361,4 @@ class HooksMaster(object):
     phase = constants.HOOKS_PHASE_POST
     hpath = constants.HOOKS_NAME_CFGUPDATE
     nodes = [self.lu.cfg.GetMasterNode()]
-    results = self._RunWrapper(nodes, hpath, phase)
+    self._RunWrapper(nodes, hpath, phase)