diff options
Diffstat (limited to 'awx_collection/plugins/modules')
-rw-r--r-- | awx_collection/plugins/modules/ad_hoc_command.py | 2 | ||||
-rw-r--r-- | awx_collection/plugins/modules/import.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/awx_collection/plugins/modules/ad_hoc_command.py b/awx_collection/plugins/modules/ad_hoc_command.py index 5864d392a5..10d1c7e352 100644 --- a/awx_collection/plugins/modules/ad_hoc_command.py +++ b/awx_collection/plugins/modules/ad_hoc_command.py @@ -163,7 +163,7 @@ def main(): for arg in ['job_type', 'limit', 'forks', 'verbosity', 'extra_vars', 'become_enabled', 'diff_mode']: if module.params.get(arg): # extra_var can receive a dict or a string, if a dict covert it to a string - if arg == 'extra_vars' and type(module.params.get(arg)) is not str: + if arg == 'extra_vars' and not isinstance(module.params.get(arg), str): post_data[arg] = json.dumps(module.params.get(arg)) else: post_data[arg] = module.params.get(arg) diff --git a/awx_collection/plugins/modules/import.py b/awx_collection/plugins/modules/import.py index fe66b2a7a3..ae0180ccd1 100644 --- a/awx_collection/plugins/modules/import.py +++ b/awx_collection/plugins/modules/import.py @@ -56,7 +56,7 @@ import logging # In this module we don't use EXPORTABLE_RESOURCES, we just want to validate that our installed awxkit has import/export try: - from awxkit.api.pages.api import EXPORTABLE_RESOURCES # noqa + from awxkit.api.pages.api import EXPORTABLE_RESOURCES # noqa: F401; pylint: disable=unused-import HAS_EXPORTABLE_RESOURCES = True except ImportError: |