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