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:
Ivan Kolodyazhny 2019-09-03 15:28:11 +03:00
parent c5c791cd69
commit 7b30ea5d3f

View File

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