mirror of
https://github.com/openkmip/pykmip
synced 2026-01-04 17:43:51 +00:00
Fixing format string indices
This change adds indices to all format strings, ensuring interoperability with Python 2.6.
This commit is contained in:
@@ -34,7 +34,7 @@ class CredentialFactory(object):
|
||||
elif cred_type is CredentialType.DEVICE:
|
||||
value = self._create_device_credential(value)
|
||||
else:
|
||||
msg = 'Unrecognized credential type: {}'
|
||||
msg = 'Unrecognized credential type: {0}'
|
||||
raise ValueError(msg.format(cred_type))
|
||||
|
||||
return self._create_credential(cred_type, value)
|
||||
|
||||
Reference in New Issue
Block a user