mirror of
https://github.com/openkmip/pykmip
synced 2025-12-16 00:04:26 +00:00
Add OperationPolicyName filtering support for Locate
This change updates Locate operation support in the PyKMIP server, allowing users to filter objects based on the object's Operation Policy Name. Unit tests and integration tests have been added to test and verify the correctness of this feature. Additionally, the Locate demo scripts have also been updated to support Operation Policy Name filtering. Simply use the "--operation-policy-name" flag to specify an Operation Policy Name string value for the Locate script to filter on.
This commit is contained in:
committed by
Peter Hamilton
parent
9e95d14e08
commit
942d55cca9
@@ -296,6 +296,14 @@ def build_cli_parser(operation=None):
|
||||
dest="unique_identifier",
|
||||
help="The unique identifier of the secret (e.g., 1, 2, 3)"
|
||||
)
|
||||
parser.add_option(
|
||||
"--operation-policy-name",
|
||||
action="store",
|
||||
type="str",
|
||||
default=None,
|
||||
dest="operation_policy_name",
|
||||
help="The operation policy name of the secret (e.g., default)"
|
||||
)
|
||||
elif operation is Operation.REGISTER:
|
||||
parser.add_option(
|
||||
"-f",
|
||||
|
||||
Reference in New Issue
Block a user