Skip to content

Commit

Permalink
[feature] GoQuery: rename hostname attribute to host in table output (#…
Browse files Browse the repository at this point in the history
…331)

Closes #330

Co-authored-by: Lennart Elsen <lelsen@open-systems.com>
  • Loading branch information
els0r and Lennart Elsen authored Jun 12, 2024
1 parent bbed499 commit fc4b41a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/types/columns.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
// Below enumerate the data type names used across goProbe
const (
TimeName = "time"
HostnameName = "hostname"
HostnameName = "host"
HostIDName = "hostid"
IfaceName = "iface"

Expand Down Expand Up @@ -321,7 +321,7 @@ func ParseQueryType(queryType string) (attributes []Attribute, selector LabelSel
case IfaceName:
selector.Iface = true
continue
case HostnameName:
case HostnameName, "hostname": // NOTE: the "hostname" alias is here specifically for backwards compatibility in v4
selector.Hostname = true
continue
case HostIDName:
Expand Down

0 comments on commit fc4b41a

Please sign in to comment.