2
0
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:
Peter Hamilton
2018-04-02 10:39:58 -04:00
parent 6bda8ec999
commit a75f0e3666
12 changed files with 74 additions and 2 deletions

View File

@@ -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: