Fix wrong audit scope

Closes-Bug #1792368

Change-Id: I3349cbe9ad66233b1b28ffb3c76e003432a843a1
This commit is contained in:
licanwei
2018-09-14 10:59:25 +08:00
parent 8e40880882
commit 9e00d1bb1f
5 changed files with 42 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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