Fix keystone-credential-cleanup job with Python 3
Python 3 renamed ConfigParser module to configparser. This patch fixes compatibility with Python 3 for the keystone-credential-cleanup job. Change-Id: I6e34ba995d7a02f94b12162f0e5f8f326dfa8108
This commit is contained in:
parent
c5c791cd69
commit
7b30ea5d3f
@ -23,7 +23,10 @@ limitations under the License.
|
||||
|
||||
import os
|
||||
import sys
|
||||
import ConfigParser
|
||||
try:
|
||||
import ConfigParser
|
||||
except ImportError:
|
||||
import configparser as ConfigParser
|
||||
import logging
|
||||
from sqlalchemy import create_engine
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user