mirror of
https://github.com/openkmip/pykmip
synced 2025-12-26 05:03:37 +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:
@@ -45,7 +45,11 @@ if __name__ == '__main__':
|
||||
# Build the client and connect to the server
|
||||
with client.ProxyKmipClient(config=config) as client:
|
||||
try:
|
||||
public_uid, private_uid = client.create_key_pair(algorithm, length)
|
||||
public_uid, private_uid = client.create_key_pair(
|
||||
algorithm,
|
||||
length,
|
||||
operation_policy_name=opts.operation_policy_name
|
||||
)
|
||||
logger.info("Successfully created public key with ID: {0}".format(
|
||||
public_uid))
|
||||
logger.info("Successfully created private key with ID: {0}".format(
|
||||
|
||||
Reference in New Issue
Block a user