Merge "Minor fixes in the static datasource documentation"

This commit is contained in:
Jenkins 2017-05-15 06:39:41 +00:00 committed by Gerrit Code Review
commit 61720c68e9
2 changed files with 2 additions and 2 deletions

View File

@ -64,10 +64,12 @@ Example
type: switch # resource type, could be any string, not limited to the type from existing datasource. 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 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 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 - static_id: h1
type: nova.host # resource type could be from existing datasource 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 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 purpose: CI # additional properties could be defined - if from existing datasource, it could be updated
... ...
relationships: relationships:

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
# TODO(yujunz) - skeleton only, methods to be implemented
from oslo_log import log as logging from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps from vitrage.common.constants import DatasourceProperties as DSProps