Fix missing self argument in instances_no_attached
instances_no_attached should have self as the first argument, this is to add it. Change-Id: I010d9d1e9ddb8790c398bcf06d0772a0d17f57ec
This commit is contained in:
@@ -350,7 +350,7 @@ class ZoneMigration(base.ZoneMigrationBaseStrategy):
|
||||
def is_in_use(self, volume):
|
||||
return getattr(volume, 'status') == IN_USE
|
||||
|
||||
def instances_no_attached(instances):
|
||||
def instances_no_attached(self, instances):
|
||||
return [i for i in instances
|
||||
if not getattr(i, "os-extended-volumes:volumes_attached")]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user