Skip to content

Commit 2b78dfb

Browse files
don't attach already attached runtime (#423)
1 parent 40d21ab commit 2b78dfb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/interface/cli/commands/runtimeEnvironments/attach.cmd.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ const attachAgentToRuntime = async (agent, name) => {
1919
if (!existingRT) {
2020
runtimes.push(name);
2121
await sdk.agents.update({ agentId: agent.id, runtimes });
22+
} else {
23+
throw new Error(`Runtime ${name} already attached`);
2224
}
2325
};
2426

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.43.13",
3+
"version": "0.43.14",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)