mirror of https://github.com/OpenKMIP/PyKMIP.git
Merge pull request #39 from cactorium/fix_credentials
Fix a few bugs in Credential object
This commit is contained in:
commit
95b729d6f7
|
@ -216,7 +216,7 @@ class Credential(Struct):
|
|||
class NetworkIdentifier(TextString):
|
||||
|
||||
def __init__(self, value=None):
|
||||
super(Credential.DeviceCredential.NetworkIdetifier, self).\
|
||||
super(Credential.DeviceCredential.NetworkIdentifier, self).\
|
||||
__init__(value, Tags.NETWORK_IDENTIFIER)
|
||||
|
||||
class MachineIdentifier(TextString):
|
||||
|
@ -240,12 +240,12 @@ class Credential(Struct):
|
|||
media_identifier=None):
|
||||
super(Credential.DeviceCredential, self).__init__(
|
||||
tag=Tags.CREDENTIAL_VALUE)
|
||||
super.device_serial_number = device_serial_number
|
||||
super.password = password
|
||||
super.device_identifier = device_identifier
|
||||
super.network_identifier = network_identifier
|
||||
super.machine_identifier = machine_identifier
|
||||
super.media_identifier = media_identifier
|
||||
self.device_serial_number = device_serial_number
|
||||
self.password = password
|
||||
self.device_identifier = device_identifier
|
||||
self.network_identifier = network_identifier
|
||||
self.machine_identifier = machine_identifier
|
||||
self.media_identifier = media_identifier
|
||||
|
||||
def read(self, istream):
|
||||
super(Credential.DeviceCredential, self).read(istream)
|
||||
|
|
Loading…
Reference in New Issue