mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
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:
commit
d84b58c857
@ -579,8 +579,8 @@ function getExtraVarsDetails () {
|
||||
|
||||
function getArtifactsDetails (val) {
|
||||
const artifacts = val || resource.model.get('artifacts');
|
||||
|
||||
if (!artifacts || artifacts === '{}') {
|
||||
if (!artifacts || (Object.entries(artifacts).length === 0 &&
|
||||
artifacts.constructor === Object)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user