mirror of
https://github.com/openkmip/pykmip
synced 2026-01-03 17:13:19 +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:
@@ -41,6 +41,7 @@ if __name__ == '__main__':
|
||||
name = 'Demo Symmetric Key'
|
||||
|
||||
key = objects.SymmetricKey(algorithm, length, value, usage_mask, name)
|
||||
key.operation_policy_name = opts.operation_policy_name
|
||||
|
||||
# Build the client and connect to the server
|
||||
with client.ProxyKmipClient(config=config) as client:
|
||||
|
||||
Reference in New Issue
Block a user