diff --git a/keystone/templates/bin/_cred-clean.py.tpl b/keystone/templates/bin/_cred-clean.py.tpl index 2361144fc7..9d1306a07e 100644 --- a/keystone/templates/bin/_cred-clean.py.tpl +++ b/keystone/templates/bin/_cred-clean.py.tpl @@ -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