AC-556 Renaming the inventory script to hopefully fix the import error.

This commit is contained in:
Chris Church 2013-10-15 17:35:39 -04:00
parent 30e907e062
commit 52d8fb5b5c
3 changed files with 2 additions and 2 deletions

View File

@ -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')

View File

@ -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):