apply role too

This commit is contained in:
davidnewhall2
2020-02-02 23:50:41 -08:00
parent d972237451
commit 57283bf2c4
+4
View File
@@ -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
}