From b242baccc34d0b4666934e944296f4a9ffd1256d Mon Sep 17 00:00:00 2001 From: Ifat Afek <ifat.afek@nokia.com> Date: Thu, 13 Apr 2017 12:51:24 +0000 Subject: [PATCH] Minor fixes in the static datasource documentation Change-Id: Id27759fc74ae9287368ae677c7761d8aa006a319 --- doc/source/static-config.rst | 2 ++ vitrage/datasources/static/transformer.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/static-config.rst b/doc/source/static-config.rst index 691be4580..d92b6d129 100644 --- a/doc/source/static-config.rst +++ b/doc/source/static-config.rst @@ -64,10 +64,12 @@ Example type: switch # resource type, could be any string, not limited to the type from existing datasource. id: 12345 # resource ID, used together with ``type`` to refer a resource in real world name: switch-1 # name, state and other properties are considered as metadata of the resource + state: active # the state of the resource ... - static_id: h1 type: nova.host # resource type could be from existing datasource id: 1 # resource ID, used together with ``type`` to refer a resource in corresponding datasource + state: active # the state of the resource purpose: CI # additional properties could be defined - if from existing datasource, it could be updated ... relationships: diff --git a/vitrage/datasources/static/transformer.py b/vitrage/datasources/static/transformer.py index 3c480b2fe..da0aea6ff 100644 --- a/vitrage/datasources/static/transformer.py +++ b/vitrage/datasources/static/transformer.py @@ -12,8 +12,6 @@ # License for the specific language governing permissions and limitations # under the License. -# TODO(yujunz) - skeleton only, methods to be implemented - from oslo_log import log as logging from vitrage.common.constants import DatasourceProperties as DSProps