mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-08-04 18:33:20 -05:00
ipapython.secrets.kem: Use ConfigParser from six.moves
In Python 3, the module name changed from 'ConfigParser' to 'configparser'. Use the appropriate location from six. Part of the work for: https://fedorahosted.org/freeipa/ticket/4985 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
committed by
Martin Basti
parent
36094b2a54
commit
75d0a73bbc
@@ -2,7 +2,7 @@
|
||||
|
||||
from __future__ import print_function
|
||||
from ipaplatform.paths import paths
|
||||
import ConfigParser
|
||||
from six.moves.configparser import ConfigParser
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa, ec
|
||||
@@ -154,7 +154,7 @@ class IPAKEMKeys(KEMKeysStore):
|
||||
|
||||
def __init__(self, config=None, ipaconf=paths.IPA_DEFAULT_CONF):
|
||||
super(IPAKEMKeys, self).__init__(config)
|
||||
conf = ConfigParser.ConfigParser()
|
||||
conf = ConfigParser()
|
||||
conf.read(ipaconf)
|
||||
self.host = conf.get('global', 'host')
|
||||
self.realm = conf.get('global', 'realm')
|
||||
|
||||
Reference in New Issue
Block a user