Skip to content

Commit

Permalink
show auto_created flag in inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus committed Nov 18, 2024
1 parent 6e07392 commit 03e001d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/crowdsec-cli/clibouncer/bouncers.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ type bouncerInfo struct {
AuthType string `json:"auth_type"`
OS string `json:"os,omitempty"`
Featureflags []string `json:"featureflags,omitempty"`
AutoCreated bool `json:"auto_created"`
}

func newBouncerInfo(b *ent.Bouncer) bouncerInfo {
Expand All @@ -92,6 +93,7 @@ func newBouncerInfo(b *ent.Bouncer) bouncerInfo {
AuthType: b.AuthType,
OS: clientinfo.GetOSNameAndVersion(b),
Featureflags: clientinfo.GetFeatureFlagList(b),
AutoCreated: b.AutoCreated,
}
}

Expand Down
1 change: 1 addition & 0 deletions cmd/crowdsec-cli/clibouncer/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (cli *cliBouncers) inspectHuman(out io.Writer, bouncer *ent.Bouncer) {
{"Last Pull", lastPull},
{"Auth type", bouncer.AuthType},
{"OS", clientinfo.GetOSNameAndVersion(bouncer)},
{"Auto Created", bouncer.AutoCreated},

Check warning on line 43 in cmd/crowdsec-cli/clibouncer/inspect.go

View check run for this annotation

Codecov / codecov/patch

cmd/crowdsec-cli/clibouncer/inspect.go#L43

Added line #L43 was not covered by tests
})

for _, ff := range clientinfo.GetFeatureFlagList(bouncer) {
Expand Down

0 comments on commit 03e001d

Please sign in to comment.