mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 02:30:01 -03:30
Return list of playbook files from the filesystem for manual projects.
This commit is contained in:
@@ -981,7 +981,7 @@ class ProjectPlaybooksSerializer(ProjectSerializer):
|
|||||||
fields = ('playbooks',)
|
fields = ('playbooks',)
|
||||||
|
|
||||||
def get_playbooks(self, obj):
|
def get_playbooks(self, obj):
|
||||||
return obj.playbook_files
|
return obj.playbook_files if obj.scm_type else obj.playbooks
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def data(self):
|
def data(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user