Add job-binary-delete to CLI

Change-Id: I865440def08d6b8e86e851de1ae44d9c4af281a3
Implements: blueprint python-savannaclient-cli
This commit is contained in:
Matthew Farrellee
2014-01-22 14:38:57 -05:00
parent 63b7e9ac11
commit 53c9fa1b52

View File

@@ -509,7 +509,7 @@ def do_job_binary_data_delete(cs, args):
# NB: user & password if url proto is swift-internal
# NB: param for credentials should be "credentials" (like data-source)
#
# TODO(mattf): job-binary-delete --name <name>|--id <id>
# job-binary-delete --name <name>|--id <id>
#
def do_job_binary_list(cs, args):
@@ -529,3 +529,12 @@ def do_job_binary_show(cs, args):
# TODO(mattf): why are we passing credentials around like this?
del binary._info['extra']
utils.print_dict(binary._info)
@utils.arg('--id',
required=True,
help='Id of a job binary')
def do_job_binary_delete(cs, args):
"""Delete a job binary."""
cs.job_binaries.delete(args.id)
# TODO(mattf): No indication of result