From a8193873dea61b246bd2bf63f93c66f369fcd426 Mon Sep 17 00:00:00 2001 From: "Jay Lau (Guangya Liu)" Date: Thu, 15 Jan 2015 08:04:55 -0500 Subject: [PATCH] Change rc_data to replicationcontroller_data Magnum backend is using replicationcontroller_data to create replication controller. Change-Id: I781cd93cb3d8d6d7ae137a4c214e2b63b1015d70 --- magnumclient/v1/replicationcontrollers.py | 3 ++- magnumclient/v1/shell.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/magnumclient/v1/replicationcontrollers.py b/magnumclient/v1/replicationcontrollers.py index 2c94c4ab..bee86637 100644 --- a/magnumclient/v1/replicationcontrollers.py +++ b/magnumclient/v1/replicationcontrollers.py @@ -17,7 +17,8 @@ from magnumclient.common import utils from magnumclient import exceptions -CREATION_ATTRIBUTES = ['bay_uuid', 'rc_definition_url', 'rc_data'] +CREATION_ATTRIBUTES = ['bay_uuid', 'rc_definition_url', + 'replicationcontroller_data'] class ReplicationController(base.Resource): diff --git a/magnumclient/v1/shell.py b/magnumclient/v1/shell.py index e08cb853..3e216dd5 100644 --- a/magnumclient/v1/shell.py +++ b/magnumclient/v1/shell.py @@ -261,7 +261,7 @@ def do_rc_create(cs, args): if args.rc_file is not None and os.path.isfile(args.rc_file): with open(args.rc_file, 'r') as f: - opts['rc_data'] = f.read() + opts['replicationcontroller_data'] = f.read() rc = cs.rcs.create(**opts) _show_rc(rc)