Added support to project field in node objects

This commit is contained in:
tengqm
2015-02-27 19:35:07 +08:00
parent 7e6205fc3c
commit f5618e3643
2 changed files with 2 additions and 1 deletions

View File

@@ -209,7 +209,6 @@ class SenlinShell(object):
def _setup_senlin_client(self, api_ver, args):
'''Create senlin client using given args.'''
print(args.username)
kwargs = {
'auth_plugin': args.auth_plugin,
'auth_url': args.auth_url,

View File

@@ -443,6 +443,7 @@ class Node(resource.Resource):
physical_id = resource.prop('physical_id')
cluster_id = resource.prop('cluster_id')
profile_id = resource.prop('profile_id')
project = resource.prop('project')
profile_name = resource.prop('profile_name')
index = resource.prop('index', type=int)
role = resource.prop('role')
@@ -482,6 +483,7 @@ class Node(resource.Resource):
'cluster_id': self.cluster_id,
'profile_id': self.profile_id,
'profile_name': self.profile_name,
'project': self.project,
'index': self.index,
'role': self.role,
'init_time': self.init_time,