Fix wrong audit scope
Closes-Bug #1792368 Change-Id: I3349cbe9ad66233b1b28ffb3c76e003432a843a1
This commit is contained in:
@@ -31,6 +31,8 @@ class BaremetalScope(base.BaseScope):
|
||||
|
||||
for scope in self.scope:
|
||||
baremetal_scope = scope.get('baremetal')
|
||||
if baremetal_scope:
|
||||
break
|
||||
|
||||
if not baremetal_scope:
|
||||
return cluster_model
|
||||
|
||||
@@ -175,6 +175,8 @@ class ComputeScope(base.BaseScope):
|
||||
|
||||
for scope in self.scope:
|
||||
compute_scope = scope.get('compute')
|
||||
if compute_scope:
|
||||
break
|
||||
|
||||
if not compute_scope:
|
||||
return cluster_model
|
||||
|
||||
@@ -133,6 +133,8 @@ class StorageScope(base.BaseScope):
|
||||
|
||||
for scope in self.scope:
|
||||
storage_scope = scope.get('storage')
|
||||
if storage_scope:
|
||||
break
|
||||
|
||||
if not storage_scope:
|
||||
return cluster_model
|
||||
|
||||
Reference in New Issue
Block a user