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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user