mirror of
https://github.com/ansible/awx.git
synced 2026-06-29 02:18:01 -02:30
Updates to insights playbook project syncing based on feedback
* Support "name" if given, else use a more reasonable file name for the playbook file * Fix an issue where we wouldn't populate the playbooks correctly in the database * Force downloading the playbooks every time since we can't tell when the file might change
This commit is contained in:
@@ -1318,10 +1318,10 @@ class RunProjectUpdate(BaseTask):
|
||||
lines = fd.readlines()
|
||||
if lines:
|
||||
p.scm_revision = lines[0].strip()
|
||||
p.playbook_files = p.playbooks
|
||||
p.save()
|
||||
else:
|
||||
logger.error("Could not find scm revision in check")
|
||||
logger.info("Could not find scm revision in check")
|
||||
p.playbook_files = p.playbooks
|
||||
p.save()
|
||||
try:
|
||||
os.remove(self.revision_path)
|
||||
except Exception, e:
|
||||
|
||||
Reference in New Issue
Block a user