mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
remove python2 support from awxkit
This commit is contained in:
@@ -7,7 +7,6 @@ import sys
|
||||
import yaml
|
||||
|
||||
from distutils.util import strtobool
|
||||
import six
|
||||
|
||||
from .custom import CustomAction
|
||||
from .format import add_output_formatting_arguments
|
||||
@@ -182,7 +181,7 @@ class ResourceOptionsParser(object):
|
||||
for k, v in parsed.items():
|
||||
# add support for file reading at top-level JSON keys
|
||||
# (to make things like SSH key data easier to work with)
|
||||
if isinstance(v, six.text_type) and v.startswith('@'):
|
||||
if isinstance(v, str) and v.startswith('@'):
|
||||
path = os.path.expanduser(v[1:])
|
||||
parsed[k] = open(path).read()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user