mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 10:38:15 -03:30
Changed project property available_playbooks to playbooks, exposed via API as a child resource of the project detail. Changed project local_path to a CharField and added helper method and API attribute to show the list of available choices for local_path.
This commit is contained in:
@@ -95,8 +95,8 @@ class BaseTestMixin(object):
|
||||
test_playbook_file.write(playbook_content)
|
||||
test_playbook_file.close()
|
||||
return Project.objects.create(
|
||||
name=name, description=description, local_path=project_dir,
|
||||
created_by=created_by,
|
||||
name=name, description=description,
|
||||
local_path=os.path.basename(project_dir), created_by=created_by,
|
||||
#scm_type='git', default_playbook='foo.yml',
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user