From f5618e364368ece1062db8ebe275ffe3bd38516b Mon Sep 17 00:00:00 2001 From: tengqm Date: Fri, 27 Feb 2015 19:35:07 +0800 Subject: [PATCH] Added support to project field in node objects --- senlinclient/shell.py | 1 - senlinclient/v1/models.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/senlinclient/shell.py b/senlinclient/shell.py index bd7fee8a..dc3b2da9 100644 --- a/senlinclient/shell.py +++ b/senlinclient/shell.py @@ -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, diff --git a/senlinclient/v1/models.py b/senlinclient/v1/models.py index c8d77ea6..c1eb449a 100644 --- a/senlinclient/v1/models.py +++ b/senlinclient/v1/models.py @@ -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,