mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
AC-556 Renaming the inventory script to hopefully fix the import error.
This commit is contained in:
@@ -348,7 +348,7 @@ class RunJob(BaseTask):
|
|||||||
# the current user.
|
# the current user.
|
||||||
ssh_username = ssh_username or 'root'
|
ssh_username = ssh_username or 'root'
|
||||||
inventory_script = self.get_path_to('..', 'plugins', 'inventory',
|
inventory_script = self.get_path_to('..', 'plugins', 'inventory',
|
||||||
'awx.py')
|
'awxrest.py')
|
||||||
args = ['ansible-playbook', '-i', inventory_script]
|
args = ['ansible-playbook', '-i', inventory_script]
|
||||||
if job.job_type == 'check':
|
if job.job_type == 'check':
|
||||||
args.append('--check')
|
args.append('--check')
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ class InventoryScriptTest(BaseScriptTest):
|
|||||||
#os.environ.setdefault('REST_API_TOKEN',
|
#os.environ.setdefault('REST_API_TOKEN',
|
||||||
# self.super_django_user.auth_token.key)
|
# self.super_django_user.auth_token.key)
|
||||||
name = os.path.join(os.path.dirname(__file__), '..', '..', 'plugins',
|
name = os.path.join(os.path.dirname(__file__), '..', '..', 'plugins',
|
||||||
'inventory', 'awx.py')
|
'inventory', 'awxrest.py')
|
||||||
return self.run_script(name, *args, **options)
|
return self.run_script(name, *args, **options)
|
||||||
|
|
||||||
def test_without_inventory_id(self):
|
def test_without_inventory_id(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user