From a8563489e7cc90ee63fdcf2a5e20942f7254c2b6 Mon Sep 17 00:00:00 2001 From: Alex Quick Date: Sat, 23 Sep 2017 17:17:59 -0400 Subject: [PATCH] [common] fix PlugnTrigger --- plugins/common/common.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/common/common.go b/plugins/common/common.go index 92c9076fc..49e847e05 100644 --- a/plugins/common/common.go +++ b/plugins/common/common.go @@ -147,7 +147,12 @@ func VerifyImage(image string) bool { //PlugnTrigger fire the given plugn trigger with the given args func PlugnTrigger(triggerName string, args ...string) (string, error) { - res, err := sh.Command("plugn", "trigger", triggerName, args).Output() + shellArgs := make([]interface{}, 0, len(args)) + shellArgs = append(shellArgs, "trigger", triggerName) + for _, arg := range args { + shellArgs = append(shellArgs, arg) + } + res, err := sh.Command("plugn", shellArgs...).Output() return string(res), err }