Update getting scoped storage CDM

Now that CDM-scoping was implemented, Getting scoped storage model
have to be updated.
This patch updates getting storage cluster data model.

Change-Id: Iefc22b54995aa8d2f3a7b3698575f6eb800d4289
This commit is contained in:
Hidekazu Nakamura
2017-11-28 13:31:29 +09:00
committed by aditi sharma
parent 2a7e0d652c
commit c6afa7c320
3 changed files with 49 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ from watcher.decision_engine.model.collector import base
from watcher.decision_engine.model import element
from watcher.decision_engine.model import model_root
from watcher.decision_engine.model.notification import cinder
from watcher.decision_engine.scope import storage as storage_scope
LOG = log.getLogger(__name__)
@@ -55,7 +56,9 @@ class CinderClusterDataModelCollector(base.BaseClusterDataModelCollector):
]
def get_audit_scope_handler(self, audit_scope):
return None
self._audit_scope_handler = storage_scope.StorageScope(
audit_scope, self.config)
return self._audit_scope_handler
def execute(self):
"""Build the storage cluster data model"""