Commit Graph

7 Commits (1339f0a0b103c140be16653f5907ce7d7d44fe95)

Author SHA1 Message Date
Jenkins 5b2d0fe1e0 Merge "Replace on[]" 8 years ago
Peter Razumovsky 4b5f296acc Replace on[]
Remove unnecessary using for more
clear code. Using properties.get(prop, default) causes
next issues:
1. properties.get(prop) if prop not in properties_schema
will return None instead of expected KeyError.
2. properties.get(prop, default) returns "default" value
if current properties is not presented in properties_schema.
So using makes sense only when we plan
to use this property with default option in another resource,
which has not it in property schema.
This patch replaces this methods in resources/openstack folder.

Change-Id: I523eb3feacb0cb7a16a928a92896ce56188e376f
8 years ago
Ethan Lynn e7aeb452f4 Add address format check for property
Some resource receive IP address as property, this patch adds
custom constraint for IP address format validation.

Implemented: blueprint enhance-property-constraints
Change-Id: Ie4ad71418aa355a4e24ac6c2a33bd85c19c5ef11
8 years ago
Pavlo Shchelokovskyy cbac15dfa1 Do not pass around rich objects in Trove resources
As described by the ref'd bug, handle_* methods should not return rich
objects to check_*_complete. This patch fixed such violations in Trove
Istance and Trove Cluster resources.

Change-Id: I65b317a17827258acd11ffc08dc4f2fd5cca517c
Partial-Bug: #1393268
8 years ago
Tetiana Lashchova 3bc2392ad7 Add OS::Trove::Cluster resource
Implements: blueprint trove-cluster-resource

Change-Id: I881ff79daafc85ab0e6fedf39134df3623136874
8 years ago
Tetiana Lashchova 6064eea7c8 Add trove flavor custom constraint
Change-Id: I08f866434beef9074dc554eb8693dd5ac421df6e
8 years ago
huangtianhua 62cf1ac71f Move trove resource
Change-Id: I15dbc426f09074564fe9cefc3ed929a3faed7404
Implements: blueprint reorganize-resources-code-structure
8 years ago