diff --git a/src/Misc/containerEngineHandlers/podmanHandler/src/podmanHandler.ts b/src/Misc/containerEngineHandlers/podmanHandler/src/podmanHandler.ts index a34e913f6..ceb0e51cf 100644 --- a/src/Misc/containerEngineHandlers/podmanHandler/src/podmanHandler.ts +++ b/src/Misc/containerEngineHandlers/podmanHandler/src/podmanHandler.ts @@ -64,14 +64,14 @@ async function run(): Promise { core.debug(JSON.stringify(containerId)) // podman start {containerId} - await exec.exec('podman', ['start', containerId.stdout]) + await exec.exec('podman', ['start', containerId.stdout.trim()]) // get PATH inside the container // output containerId for ${{job.container.id}} const creationOutput = { - JobContainerId: containerId.stdout, + JobContainerId: containerId.stdout.trim(), Network: networkName } diff --git a/src/Misc/layoutbin/podmanHandler/index.js b/src/Misc/layoutbin/podmanHandler/index.js index 8590a4072..15a55f934 100644 --- a/src/Misc/layoutbin/podmanHandler/index.js +++ b/src/Misc/layoutbin/podmanHandler/index.js @@ -1100,11 +1100,11 @@ function run() { ]); core.debug(JSON.stringify(containerId)); // podman start {containerId} - yield exec.exec('podman', ['start', containerId.stdout]); + yield exec.exec('podman', ['start', containerId.stdout.trim()]); // get PATH inside the container // output containerId for ${{job.container.id}} const creationOutput = { - JobContainerId: containerId.stdout, + JobContainerId: containerId.stdout.trim(), Network: networkName }; const output = JSON.stringify({ CreationOutput: creationOutput });