engine: resources: Add missing WatchCmd UID
Not sure if this is even used anywhere, but might as well add it for now.
This commit is contained in:
@@ -591,8 +591,9 @@ func (obj *ExecRes) Interrupt() error {
|
|||||||
// ExecUID is the UID struct for ExecRes.
|
// ExecUID is the UID struct for ExecRes.
|
||||||
type ExecUID struct {
|
type ExecUID struct {
|
||||||
engine.BaseUID
|
engine.BaseUID
|
||||||
Cmd string
|
Cmd string
|
||||||
IfCmd string
|
WatchCmd string
|
||||||
|
IfCmd string
|
||||||
// TODO: add more elements here
|
// TODO: add more elements here
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -678,9 +679,10 @@ func (obj *ExecRes) AutoEdges() (engine.AutoEdge, error) {
|
|||||||
// resources only return one, although some resources can return multiple.
|
// resources only return one, although some resources can return multiple.
|
||||||
func (obj *ExecRes) UIDs() []engine.ResUID {
|
func (obj *ExecRes) UIDs() []engine.ResUID {
|
||||||
x := &ExecUID{
|
x := &ExecUID{
|
||||||
BaseUID: engine.BaseUID{Name: obj.Name(), Kind: obj.Kind()},
|
BaseUID: engine.BaseUID{Name: obj.Name(), Kind: obj.Kind()},
|
||||||
Cmd: obj.getCmd(),
|
Cmd: obj.getCmd(),
|
||||||
IfCmd: obj.IfCmd,
|
WatchCmd: obj.WatchCmd,
|
||||||
|
IfCmd: obj.IfCmd,
|
||||||
// TODO: add more params here
|
// TODO: add more params here
|
||||||
}
|
}
|
||||||
return []engine.ResUID{x}
|
return []engine.ResUID{x}
|
||||||
|
|||||||
Reference in New Issue
Block a user