From ab34e49bc131da470e1ab377680b4c30f8a53eb5 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Wed, 9 Feb 2022 19:39:15 +0100 Subject: [PATCH] =?UTF-8?q?Pas=20de=20t=C3=A2che=20pour=20la=20cr=C3=A9ati?= =?UTF-8?q?on=20de=20d=C3=A9p=C3=B4t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vars/pulp.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/pulp.groovy b/vars/pulp.groovy index 4a64d6f..d7ad162 100644 --- a/vars/pulp.groovy +++ b/vars/pulp.groovy @@ -24,7 +24,7 @@ def createRepository( def postBody = JsonOutput.toJson(repositoryName) def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/repositories/deb/apt/", httpMode: 'POST', requestBody: postBody, contentType: 'APPLICATION_JSON', ignoreSslErrors: true, validResponseCodes: "100:399" def jsonResponse = readJSON text: response.content - return waitForTaskCompletion(credentials, jsonResponse.task) + return jsonResponse.pulp_href } def getRepositoryHREF( @@ -44,7 +44,7 @@ def getRepositoryHREF( if (repositoryHREF) { return repositoryHREF.pulp_href } else { - return createRepository(credentials, repositoriesMapping[repositoryLevel])[0] + return createRepository(credentials, repositoriesMapping[repositoryLevel]) } }