Check si le provisioning est activé... avant de l'appliquer
This commit is contained in:
parent
3d7c9d98be
commit
8a4212c101
1 changed files with 1 additions and 1 deletions
2
main.py
2
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()
|
||||
|
|
Loading…
Reference in a new issue