2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-15 07:43:26 +00:00

Adding a demo for the Activate operation

This change adds a unit demo for the Activate operation. The operation
accepts the UID of a KMIP managed object that needs to be activated for
future use.
This commit is contained in:
Peter Hamilton
2015-06-26 09:52:28 -04:00
parent a7e2084385
commit ef628b3f0e
2 changed files with 74 additions and 0 deletions

View File

@@ -125,6 +125,15 @@ def build_cli_parser(operation):
default=None,
dest="uuid",
help="UUID of secret to delete from the KMIP server")
elif operation is Operation.ACTIVATE:
parser.add_option(
"-i",
"--uuid",
action="store",
type="str",
default=None,
dest="uuid",
help="UUID of secret to activate on the KMIP server")
elif operation is Operation.GET:
parser.add_option(
"-i",