Selaa lähdekoodia

Fix flake8 errors

Ehsan Chiniforooshan 7 vuotta sitten
vanhempi
sitoutus
7275b6202d

+ 1 - 1
cloudbridge/cloud/providers/gce/resources.py

@@ -758,7 +758,7 @@ class GCEInstance(BaseInstance):
         """
         Set the instance name.
         """
-        GCEInstance.assert_valid_resource_name(name)
+        GCEInstance.assert_valid_resource_name(value)
         # In GCE, the name of the instance is provided by the client when
         # initially creating the resource. The name cannot be changed after
         # the instance is created.

+ 1 - 1
test/test_block_store_service.py

@@ -116,7 +116,7 @@ class CloudBlockStoreServiceTestCase(ProviderTestBase):
                 self.assertEqual(test_vol.attachments.instance_id,
                                  test_instance.id)
                 if (self.provider.PROVIDER_ID != 'azure' and
-                    self.provider.PROVIDER_ID != 'gce'):
+                        self.provider.PROVIDER_ID != 'gce'):
                     self.assertEqual(test_vol.attachments.device,
                                      "/dev/sda2")
                 test_vol.detach()