diff --git a/magnumclient/api/pods.py b/magnumclient/api/pods.py index c05cdcc8..5ca3c357 100644 --- a/magnumclient/api/pods.py +++ b/magnumclient/api/pods.py @@ -17,7 +17,7 @@ from magnumclient.common import utils from magnumclient import exceptions -CREATION_ATTRIBUTES = ['name'] +CREATION_ATTRIBUTES = ['pod_data'] class Pod(base.Resource): diff --git a/magnumclient/api/shell.py b/magnumclient/api/shell.py index 0af51ea0..b23e2665 100644 --- a/magnumclient/api/shell.py +++ b/magnumclient/api/shell.py @@ -184,17 +184,13 @@ def do_pod_list(cs, args): {'versions': _print_list_field('versions')}) -@utils.arg('--name', - metavar='', - help='Name of the pod to create.') @utils.arg('--pod-file', metavar='', help='Name of the pod file to use for creating PODs.') def do_pod_create(cs, args): """Create a pod.""" opts = {} - opts['name'] = args.name - opts['pod_data'] = open(args.pod_file).read() + opts['pod_data'] = args.pod_file node = cs.pods.create(**opts) _show_pod(node)