Node Groups now have id field

The id of a Node Group in a cluster is required when you try to get the
Node Group name by id.

Change-Id: I405c402550264c30285e4e4635188ededcda3ed4
This commit is contained in:
Nikita Konovalov 2015-03-12 16:31:45 +03:00
parent 3814c2796e
commit b05903568c
2 changed files with 3 additions and 1 deletions

View File

@ -194,7 +194,7 @@ class NodeGroupResource(Resource, objects.NodeGroup):
'node_group_template': (NodeGroupTemplateResource, None)
}
_filter_fields = ['id', 'tenant_id', 'cluster_id', 'cluster_template_id',
_filter_fields = ['tenant_id', 'cluster_id', 'cluster_template_id',
'image_username', 'open_ports']

View File

@ -42,8 +42,10 @@ SAMPLE_CLUSTER_DICT = {
'node_groups': [
{
'name': 'master',
'id': 'some_id'
},
{
'id': 'some_id',
'name': 'worker',
'node_processes': ['tasktracker', 'datanode'],
'node_configs': {},