agent/structs: check is alias if node is empty

This commit is contained in:
Mitchell Hashimoto 2018-06-30 07:41:46 -07:00
parent 00d95f9214
commit b12d8ae179
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 1 additions and 1 deletions

View File

@ -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.