diff --git a/vars/pulp.groovy b/vars/pulp.groovy index d515fcd..b61c4ba 100644 --- a/vars/pulp.groovy +++ b/vars/pulp.groovy @@ -132,7 +132,7 @@ def distributePublication( def postBody = JsonOutput.toJson(bodyContent) response = httpRequest authentication: credentials, url: "https://${pulpHost}${url}", httpMode: httpMode, requestBody: postBody, contentType: 'APPLICATION_JSON', ignoreSslErrors: true, validResponseCodes: "100:399" jsonResponse = readJSON text: response.content - if (distribution) { + if (distributionHREF) { waitForTaskCompletion(credentials, jsonResponse.task) return [url] } else {