mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 15:53:36 +00:00
Add operation policy name to demo scripts
This change adds the ability to set the operation policy name attribute to object creation demo scripts, including demos for the Create, CreateKeyPair, and Register operations.
This commit is contained in:
@@ -46,7 +46,11 @@ if __name__ == '__main__':
|
||||
# Build the client and connect to the server
|
||||
with client.ProxyKmipClient(config=config) as client:
|
||||
try:
|
||||
uid = client.create(algorithm, length)
|
||||
uid = client.create(
|
||||
algorithm,
|
||||
length,
|
||||
operation_policy_name=opts.operation_policy_name
|
||||
)
|
||||
logger.info("Successfully created symmetric key with ID: "
|
||||
"{0}".format(uid))
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user