Browse Source

Fixing flake error

almahmoud 7 năm trước cách đây
mục cha
commit
7d1a0b81a4

+ 5 - 5
cloudbridge/providers/aws/services.py

@@ -838,11 +838,11 @@ class AWSInstanceService(BaseInstanceService):
     def delete(self, instance):
     def delete(self, instance):
         # pylint:disable=protected-access
         # pylint:disable=protected-access
         if (isinstance(instance, AWSInstance)
         if (isinstance(instance, AWSInstance)
-            and instance._ec2_instance
-                        .placement
-                        .get('AvailabilityZone',
-                             '') == self.provider.zone_name):
-                aws_inst = instance
+                and instance._ec2_instance
+                            .placement
+                            .get('AvailabilityZone',
+                                 '') == self.provider.zone_name):
+            aws_inst = instance
         else:
         else:
             aws_inst = self.get(instance)
             aws_inst = self.get(instance)
         if aws_inst:
         if aws_inst: