Update code so it works with older requests version.
@@ -23,9 +23,8 @@ import traceback
import six
import requests
-import urllib3
-from urllib3.exceptions import InsecureRequestWarning
+from requests.packages.urllib3.exceptions import InsecureRequestWarning
from st2client import models
from st2client.config_parser import CLIConfigParser
@@ -107,7 +106,6 @@ class BaseCLIApp(object):
silence_ssl_warnings = rc_config.get('general', {}).get('silence_ssl_warnings', False)
if silence_ssl_warnings:
# pylint: disable=no-member
- urllib3.disable_warnings(InsecureRequestWarning)
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
# We skip automatic authentication for some commands such as auth
