Skip to content

Commit

Permalink
fix panic with api.config (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehazlett authored Sep 27, 2022
1 parent 8223045 commit 9a49172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func (api *KentikApi) getSynthInfo(ctx context.Context) error {
}

func (api *KentikApi) EnsureDevice(ctx context.Context, conf *kt.SnmpDeviceConfig) error {
if api == nil || len(api.config.KentikCreds) == 0 {
if api == nil || api.config == nil || len(api.config.KentikCreds) == 0 {
return nil
}

Expand Down

0 comments on commit 9a49172

Please sign in to comment.