diff --git a/main.py b/main.py index 4d71553..508cdb3 100755 --- a/main.py +++ b/main.py @@ -130,7 +130,7 @@ class Switch: def apply_conf(self): if self.check_and_get_login(): - if self.switch["model"] and self.switch["automatic_provision"] == True: + if self.switch["model"] and self.switch["automatic_provision"] == True and self.settings["provision_switchs_enabled"]: constructor = self.switch["model"]["constructor"].lower() if "hp" in constructor or "aruba" in constructor: self.login_hp()