Commit Graph

6 Commits (1339f0a0b103c140be16653f5907ce7d7d44fe95)

Author SHA1 Message Date
Jenkins 5b2d0fe1e0 Merge "Replace self.properties.get on self.properties[]" 2015-05-15 00:49:57 +00:00
Peter Razumovsky 4b5f296acc Replace self.properties.get on self.properties[]
Remove unnecessary using self.properties.get 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 self.properties.get() 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
2015-05-13 16:24:12 +03:00
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
2015-05-12 16:07:48 +08:00
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
2015-04-24 15:38:54 -07:00
Tetiana Lashchova 6064eea7c8 Add trove flavor custom constraint
Change-Id: I08f866434beef9074dc554eb8693dd5ac421df6e
2015-03-12 15:16:44 +02:00
huangtianhua 62cf1ac71f Move trove resource
Change-Id: I15dbc426f09074564fe9cefc3ed929a3faed7404
Implements: blueprint reorganize-resources-code-structure
2015-03-06 11:07:12 +08:00