Skip to content

Commit

Permalink
chore: fixed scoped value in pause/resume method of network node
Browse files Browse the repository at this point in the history
  • Loading branch information
l0r1s committed Apr 25, 2023
1 parent 276e810 commit 390b3cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions javascript/packages/orchestrator/src/networkNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,17 @@ export class NetworkNode implements NetworkNodeInterface {
async pause() {
const client = getClient();
const args = client.getPauseArgs(this.name);
const scoped = client.providerName === "kubernetes";

const result = await client.runCommand(args, { scoped: true });
const result = await client.runCommand(args, { scoped });
return result.exitCode === 0;
}

async resume() {
const client = getClient();
const args = client.getResumeArgs(this.name);
const result = await client.runCommand(args, { scoped: true });
const scoped = client.providerName === "kubernetes";
const result = await client.runCommand(args, { scoped });
return result.exitCode === 0;
}

Expand Down

0 comments on commit 390b3cc

Please sign in to comment.