1
0
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:
softwarefactory-project-zuul[bot] 2019-02-11 15:21:07 +00:00 committed by GitHub
commit d84b58c857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}