2
0
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:
Peter Hamilton
2015-02-23 09:52:15 -05:00
parent f6b420d2db
commit 0cd2d3dab6
18 changed files with 68 additions and 67 deletions

View File

@@ -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)