From db03c9e9a8178f4bc2d6934302464bd10ff8cf89 Mon Sep 17 00:00:00 2001 From: Ahmed Elsabbahy Date: Fri, 15 Nov 2019 19:06:17 -0800 Subject: [PATCH] Fix command ID (#495) --- resource/command.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/resource/command.go b/resource/command.go index fb46fcecb..9819202e6 100644 --- a/resource/command.go +++ b/resource/command.go @@ -22,12 +22,7 @@ type Command struct { Skip bool `json:"skip,omitempty" yaml:"skip,omitempty"` } -func (c *Command) ID() string { - if c.Exec != "" && c.Exec != c.Command { - return fmt.Sprintf("%s: %s", c.Command, c.Exec) - } - return c.Command -} +func (c *Command) ID() string { return c.Command } func (c *Command) SetID(id string) { c.Command = id } func (c *Command) GetTitle() string { return c.Title }