mirror of https://github.com/hashicorp/consul
agent/structs: check is alias if node is empty
parent
36e330941a
commit
5bc27feb0b
|
@ -77,7 +77,7 @@ func (c *CheckType) Empty() bool {
|
|||
|
||||
// IsAlias checks if this is an alias check.
|
||||
func (c *CheckType) IsAlias() bool {
|
||||
return c.AliasService != ""
|
||||
return c.AliasNode != "" || c.AliasService != ""
|
||||
}
|
||||
|
||||
// IsScript checks if this is a check that execs some kind of script.
|
||||
|
|
Loading…
Reference in New Issue