From 57283bf2c4c24df2b317339a905cd01588c94dda Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sun, 2 Feb 2020 23:50:41 -0800 Subject: [PATCH] apply role too --- integrations/inputunifi/input.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integrations/inputunifi/input.go b/integrations/inputunifi/input.go index 1722d79e..eed83031 100644 --- a/integrations/inputunifi/input.go +++ b/integrations/inputunifi/input.go @@ -173,6 +173,10 @@ func (u *InputUnifi) setDefaults(c *Controller, useDefaults bool) { c.URL = defaultURL } + if c.Role == "" { + c.Role = c.URL + } + if c.Pass == "" { c.Pass = defaultPass }