Fix lines with more than 80 characters
authorLisa Velden <velden@google.com>
Fri, 27 Nov 2015 10:25:55 +0000 (11:25 +0100)
committerLisa Velden <velden@google.com>
Fri, 27 Nov 2015 11:32:22 +0000 (12:32 +0100)
Previous refactoring has introduced lines with too many characters.
This patch fixes this.

Signed-off-by: Lisa Velden <velden@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

test/py/cmdlib/instance_unittest.py

index 35c929a..e90bbea 100644 (file)
@@ -2680,7 +2680,8 @@ class TestLUInstanceSetParams(CmdlibTestCase):
   def testAttachDiskWrongTemplate(self):
     msg = "Instance has '%s' template while disk has '%s' template" % \
       (constants.DT_PLAIN, constants.DT_BLOCK)
-    self.cfg.AddOrphanDisk(name=self.mocked_disk_name, dev_type=constants.DT_BLOCK)
+    self.cfg.AddOrphanDisk(name=self.mocked_disk_name,
+                           dev_type=constants.DT_BLOCK)
     op = self.CopyOpCode(self.op,
                          disks=[[constants.DDM_ATTACH, -1,
                                  {
@@ -2692,7 +2693,8 @@ class TestLUInstanceSetParams(CmdlibTestCase):
   def testAttachDiskWrongNodes(self):
     msg = "Disk nodes are \['mock_node_1134'\]"
 
-    self.cfg.AddOrphanDisk(name=self.mocked_disk_name, primary_node="mock_node_1134")
+    self.cfg.AddOrphanDisk(name=self.mocked_disk_name,
+                           primary_node="mock_node_1134")
     op = self.CopyOpCode(self.op,
                          disks=[[constants.DDM_ATTACH, -1,
                                  {
@@ -2702,7 +2704,8 @@ class TestLUInstanceSetParams(CmdlibTestCase):
     self.ExecOpCodeExpectOpPrereqError(op, msg)
 
   def testAttachDiskRunningInstance(self):
-    self.cfg.AddOrphanDisk(name=self.mocked_disk_name, primary_node=self.master.uuid)
+    self.cfg.AddOrphanDisk(name=self.mocked_disk_name,
+                           primary_node=self.master.uuid)
     self.rpc.call_blockdev_assemble.return_value = \
       self.RpcResultsBuilder() \
         .CreateSuccessfulNodeResult(self.master,
@@ -2720,7 +2723,8 @@ class TestLUInstanceSetParams(CmdlibTestCase):
     self.assertFalse(self.rpc.call_blockdev_shutdown.called)
 
   def testAttachDiskRunningInstanceNoWaitForSync(self):
-    self.cfg.AddOrphanDisk(name=self.mocked_disk_name, primary_node=self.master.uuid)
+    self.cfg.AddOrphanDisk(name=self.mocked_disk_name,
+                           primary_node=self.master.uuid)
     self.rpc.call_blockdev_assemble.return_value = \
       self.RpcResultsBuilder() \
         .CreateSuccessfulNodeResult(self.master,
@@ -2738,7 +2742,8 @@ class TestLUInstanceSetParams(CmdlibTestCase):
     self.assertFalse(self.rpc.call_blockdev_shutdown.called)
 
   def testAttachDiskDownInstance(self):
-    self.cfg.AddOrphanDisk(name=self.mocked_disk_name, primary_node=self.master.uuid)
+    self.cfg.AddOrphanDisk(name=self.mocked_disk_name,
+                           primary_node=self.master.uuid)
     op = self.CopyOpCode(self.op,
                          disks=[[constants.DDM_ATTACH, -1,
                                  {
@@ -2762,7 +2767,8 @@ class TestLUInstanceSetParams(CmdlibTestCase):
           " and --no-wait-for-sync given.")
 
   def testHotAttachDisk(self):
-    self.cfg.AddOrphanDisk(name=self.mocked_disk_name, primary_node=self.master.uuid)
+    self.cfg.AddOrphanDisk(name=self.mocked_disk_name,
+                           primary_node=self.master.uuid)
     self.rpc.call_blockdev_assemble.return_value = \
       self.RpcResultsBuilder() \
         .CreateSuccessfulNodeResult(self.master,
@@ -2912,7 +2918,8 @@ class TestLUInstanceSetParams(CmdlibTestCase):
 
     op = self.CopyOpCode(self.op,
                          instance_name=inst.name,
-                         disks=[[constants.DDM_DETACH, self.mocked_disk_uuid, {}]])
+                         disks=[[constants.DDM_DETACH,
+                         self.mocked_disk_uuid, {}]])
 
     self.ExecOpCode(op)
     self.assertEqual([], self.cfg.GetInstanceDisks(inst.uuid))
@@ -2939,7 +2946,8 @@ class TestLUInstanceSetParams(CmdlibTestCase):
 
     op = self.CopyOpCode(self.op,
                          instance_name=inst.name,
-                         disks=[[constants.DDM_DETACH, self.mocked_disk_uuid, {}]])
+                         disks=[[constants.DDM_DETACH,
+                         self.mocked_disk_uuid, {}]])
 
     self.ExecOpCode(op)
     self.assertEqual([], self.cfg.GetInstanceDisks(inst.uuid))