Skip to content

Commit

Permalink
Resolve #44: fix for checkrr not running when there are no arr services
Browse files Browse the repository at this point in the history
  • Loading branch information
aetaric committed Jan 22, 2023
1 parent 07fce6d commit d0155a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check/checkrr.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (c *Checkrr) FromConfig(conf *viper.Viper) {
}

func (c *Checkrr) connectServices() {
if viper.GetViper().GetStringMap("arr") != nil {
if viper.GetViper().Sub("arr") != nil {
arrConfig := viper.GetViper().Sub("arr")
arrKeys := viper.GetViper().Sub("arr").AllKeys()
for _, key := range arrKeys {
Expand Down

0 comments on commit d0155a1

Please sign in to comment.