2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-22 19:23:27 +00:00

Add client support for custom configuration file paths

This change adds client support for setting custom configuration
file paths, allowing users and developers to place their settings
file wherever they want. All client demo scripts have been updated
to support a '-s' flag that can be used to set the configuration
file for the demo. Client unit tests have also been updated to
include this change.
This commit is contained in:
Peter Hamilton
2018-04-17 14:41:04 -04:00
parent 583559195f
commit f9e32552f8
33 changed files with 166 additions and 45 deletions

View File

@@ -74,7 +74,7 @@ if __name__ == '__main__':
credential = credential_factory.create_credential(credential_type,
credential_value)
# Build the client and connect to the server
client = KMIPProxy(config=config)
client = KMIPProxy(config=config, config_file=opts.config_file)
client.open()
# Build the different object attributes