mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 21:20:08 -03:30
ansible_tower: fix broken import, reuse tower_argument_spec and documentation fragment (#29115)
* module_utils/ansible_tower: fix broken import * tower_*: use tower_argument_spec & doc fragment * tower doc fragment: Ansible requires Python 2.6+ * tower_job_wait: fix broken import (Py3 compat)
This commit is contained in:
@@ -28,9 +28,14 @@
|
||||
|
||||
import os
|
||||
|
||||
import tower_cli.utils.exceptions as exc
|
||||
from tower_cli.utils import parser
|
||||
from tower_cli.api import client
|
||||
try:
|
||||
import tower_cli.utils.exceptions as exc
|
||||
from tower_cli.utils import parser
|
||||
from tower_cli.api import client
|
||||
|
||||
HAS_TOWER_CLI = True
|
||||
except ImportError:
|
||||
HAS_TOWER_CLI = False
|
||||
|
||||
|
||||
def tower_auth_config(module):
|
||||
|
||||
Reference in New Issue
Block a user