diff --git a/helm-toolkit/templates/scripts/_db-drop.py.tpl b/helm-toolkit/templates/scripts/_db-drop.py.tpl index 2f661bccf..55280c618 100644 --- a/helm-toolkit/templates/scripts/_db-drop.py.tpl +++ b/helm-toolkit/templates/scripts/_db-drop.py.tpl @@ -27,7 +27,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 diff --git a/helm-toolkit/templates/scripts/_db-init.py.tpl b/helm-toolkit/templates/scripts/_db-init.py.tpl index c3a1b6dff..ca0ff5828 100644 --- a/helm-toolkit/templates/scripts/_db-init.py.tpl +++ b/helm-toolkit/templates/scripts/_db-init.py.tpl @@ -27,7 +27,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