Skip to content

Commit

Permalink
probes: update not detected to none in output
Browse files Browse the repository at this point in the history
Rather than say not detected, respond with none instead.
  • Loading branch information
powersj committed Dec 27, 2020
1 parent 2f93fb0 commit eb8a631
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cloud/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (p *Probe) probe() error {
// String representation of the struct.
func (p *Probe) String() string {
if p.Name == "" {
return "cloud: not detected"
return "cloud: none"
}

return fmt.Sprintf("cloud: %s", p.Name)
Expand Down
2 changes: 1 addition & 1 deletion pkg/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (p *Probe) probe() error {
// String representation of the struct.
func (p *Probe) String() string {
if p.Name == "" {
return "container: not detected"
return "container: none"
}

return fmt.Sprintf("container: %s", p.Name)
Expand Down
2 changes: 1 addition & 1 deletion pkg/virt/virt.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (p *Probe) probe() error {
// String representation of the struct.
func (p *Probe) String() string {
if p.Name == "" {
return "virt: not detected"
return "virt: none"
}

return fmt.Sprintf("virt: %s", p.Name)
Expand Down

0 comments on commit eb8a631

Please sign in to comment.