Add job-template-delete to CLI

Change-Id: I3f22207148751b9f14dd862cfdf4c0d0eeca426c
Implements: blueprint python-savannaclient-cli
This commit is contained in:
Matthew Farrellee
2014-01-22 14:52:05 -05:00
parent c31be0f68b
commit 4a17be3a5a

View File

@@ -552,7 +552,7 @@ def do_job_binary_delete(cs, args):
# --mains <array of string>
# --libs <array of string>
#
# TODO(mattf): job-template-delete --name <name>|--id <id>
# job-template-delete --name <name>|--id <id>
#
def do_job_template_list(cs, args):
@@ -571,3 +571,12 @@ def do_job_template_show(cs, args):
template = cs.jobs.get(args.id)
# TODO(mattf): Make "mains" property pretty
utils.print_dict(template._info)
@utils.arg('--id',
required=True,
help='Id of a job template')
def do_job_template_delete(cs, args):
"""Delete a job template."""
cs.jobs.delete(args.id)
# TODO(mattf): No indication of result