Merge "Adding labels support to Storm"

This commit is contained in:
Jenkins 2017-04-21 10:28:10 +00:00 committed by Gerrit Code Review
commit c998c68c14
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,3 @@
---
deprecations:
- Storm version 0.9.2 is deprecated.

View File

@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import copy
from oslo_log import log as logging
import six
import yaml
@ -49,6 +51,18 @@ class StormProvider(p.ProvisioningPluginBase):
_("This plugin provides an ability to launch Storm "
"cluster without any management consoles."))
def get_labels(self):
default = {'enabled': {'status': True}, 'stable': {'status': True}}
deprecated = {'enabled': {'status': True},
'deprecated': {'status': True}}
result = {'plugin_labels': copy.deepcopy(default)}
result['version_labels'] = {
'1.1.0': copy.deepcopy(default),
'1.0.1': copy.deepcopy(default),
'0.9.2': copy.deepcopy(deprecated),
}
return result
def get_versions(self):
return ['0.9.2', '1.0.1', '1.1.0']