From 3259ab1b73781f9db73ec5ab72d21fdbb1ee3f45 Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sun, 2 Feb 2020 23:53:48 -0800 Subject: [PATCH] make role match url --- integrations/inputunifi/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/inputunifi/input.go b/integrations/inputunifi/input.go index eed83031..dc97acf5 100644 --- a/integrations/inputunifi/input.go +++ b/integrations/inputunifi/input.go @@ -173,7 +173,7 @@ func (u *InputUnifi) setDefaults(c *Controller, useDefaults bool) { c.URL = defaultURL } - if c.Role == "" { + if c.Role == defaultURL { c.Role = c.URL }