🐛 Fix run deck node (#2285)

This commit is contained in:
Omar Ajoue
2021-10-06 20:14:53 +02:00
committed by GitHub
parent a5e714f1c4
commit 3fe5a2ddff
2 changed files with 15 additions and 12 deletions

View File

@@ -163,9 +163,11 @@ export class Rundeck implements INodeType {
const operation = this.getNodeParameter('operation', 0) as string;
const resource = this.getNodeParameter('resource', 0) as string;
const rundeckApi = new RundeckApi(this);
await rundeckApi.init();
for (let i = 0; i < length; i++) {
const rundeckApi = new RundeckApi(this);
if (resource === 'job') {
if (operation === 'execute') {