mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 13:27:40 -02:30
Merge pull request #3196 from kialam/detect-empty-artifacts
Job Artifacts: check for empty object rather than string value. Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -579,8 +579,8 @@ function getExtraVarsDetails () {
|
|||||||
|
|
||||||
function getArtifactsDetails (val) {
|
function getArtifactsDetails (val) {
|
||||||
const artifacts = val || resource.model.get('artifacts');
|
const artifacts = val || resource.model.get('artifacts');
|
||||||
|
if (!artifacts || (Object.entries(artifacts).length === 0 &&
|
||||||
if (!artifacts || artifacts === '{}') {
|
artifacts.constructor === Object)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user