mirror of
https://github.com/openkmip/pykmip
synced 2025-12-28 14:13:33 +00:00
Update the ProtocolVersion implementation
This change updates the implementation of the ProtocolVersion struct, bringing it inline with the current struct style. All uses of the struct have been updated to reflect these changes, as have the struct unit tests.
This commit is contained in:
@@ -42,8 +42,7 @@ if __name__ == '__main__':
|
||||
if opts.protocol_versions is not None:
|
||||
for version in re.split(',| ', opts.protocol_versions):
|
||||
mm = re.split('\.', version)
|
||||
protocol_versions.append(ProtocolVersion.create(int(mm[0]),
|
||||
int(mm[1])))
|
||||
protocol_versions.append(ProtocolVersion(int(mm[0]), int(mm[1])))
|
||||
|
||||
# Build the client and connect to the server
|
||||
client = KMIPProxy(config=config)
|
||||
|
||||
Reference in New Issue
Block a user