mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
update current workflow copy implementation to be compatible with recent api changes
This commit is contained in:
parent
605a2c7e01
commit
894f0cf2c5
@ -61,13 +61,16 @@
|
||||
Rest.setUrl(url);
|
||||
return Rest.get();
|
||||
},
|
||||
copyWorkflow: function(id) {
|
||||
getWorkflowCopyName: function(baseName) {
|
||||
return `${baseName}@${moment().format('h:mm:ss a')}`;
|
||||
},
|
||||
copyWorkflow: function(id, name) {
|
||||
let url = GetBasePath('workflow_job_templates');
|
||||
|
||||
url = url + id + '/copy';
|
||||
|
||||
Rest.setUrl(url);
|
||||
return Rest.post();
|
||||
return Rest.post({ name });
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user