mirror of
https://github.com/openkmip/pykmip
synced 2025-12-20 10:13:18 +00:00
Add State filtering support for the Locate operation
This change updates Locate operation support in the PyKMIP server, allowing users to filter objects based on the object's State. 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 State filtering. Simply use the "--state" flag to specify a State enumeration for the Locate script to filter on.
This commit is contained in:
committed by
Peter Hamilton
parent
da284e932b
commit
e5de55c0a8
@@ -252,6 +252,14 @@ def build_cli_parser(operation=None):
|
||||
"'Tue Jul 23 18:39:01 2019'"
|
||||
)
|
||||
)
|
||||
parser.add_option(
|
||||
"--state",
|
||||
action="store",
|
||||
type="str",
|
||||
default=None,
|
||||
dest="state",
|
||||
help="The state of the secret (e.g., PRE_ACTIVE, ACTIVE)"
|
||||
)
|
||||
elif operation is Operation.REGISTER:
|
||||
parser.add_option(
|
||||
"-f",
|
||||
|
||||
Reference in New Issue
Block a user