Skip to content

Commit 42d8934

Browse files
Chnwanzearmnejad
authored andcommitted
Fixed default param in psmodule
cr: https://code.amazon.com/reviews/CR-110095876
1 parent d2223ad commit 42d8934

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/plugins/psmodule/psmodule.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ func (p *Plugin) runCommandsRawInput(pluginID string, rawPluginInput interface{}
9999
return
100100
}
101101

102+
// Make sure parsed commands list is empty before appending commands
103+
pluginInput.ParsedCommands = nil
104+
102105
pluginInput.ParsedCommands = pluginutil.ParseRunCommand(pluginInput.RunCommand, pluginInput.ParsedCommands)
103106
p.runCommands(pluginID, pluginInput, orchestrationDirectory, cancelFlag, output)
104107
}

0 commit comments

Comments
 (0)