mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 10:57:35 -02:30
update current workflow copy implementation to be compatible with recent api changes
This commit is contained in:
@@ -61,13 +61,16 @@
|
|||||||
Rest.setUrl(url);
|
Rest.setUrl(url);
|
||||||
return Rest.get();
|
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');
|
let url = GetBasePath('workflow_job_templates');
|
||||||
|
|
||||||
url = url + id + '/copy';
|
url = url + id + '/copy';
|
||||||
|
|
||||||
Rest.setUrl(url);
|
Rest.setUrl(url);
|
||||||
return Rest.post();
|
return Rest.post({ name });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user