From 0decd46dd069285e95278bc4f6f2a50fd4ba0e3a Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Mon, 20 Jan 2014 12:06:01 -0500 Subject: [PATCH] Add node-group-template-create to CLI node-group-template-create takes a json data structure and passes it on to the Savanna API. The data structure is read from stdin by default or from a file provided by the --json parameter. Change-Id: I9f885df84726d6390e57e39ccafee75935c86c9d Implements: blueprint python-savannaclient-cli --- savannaclient/api/shell.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/savannaclient/api/shell.py b/savannaclient/api/shell.py index 3168b6b1..6796cff9 100644 --- a/savannaclient/api/shell.py +++ b/savannaclient/api/shell.py @@ -13,8 +13,11 @@ # License for the specific language governing permissions and limitations # under the License. +import argparse +import inspect import json from savannaclient.nova import utils +import sys def _print_list_field(field): @@ -266,7 +269,7 @@ def do_cluster_delete(cs, args): # # node-group-template-show --name