Commit 8a4212c1 authored by chirac's avatar chirac

Check si le provisioning est activé... avant de l'appliquer

parent 3d7c9d98
...@@ -130,7 +130,7 @@ class Switch: ...@@ -130,7 +130,7 @@ class Switch:
def apply_conf(self): def apply_conf(self):
if self.check_and_get_login(): 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() constructor = self.switch["model"]["constructor"].lower()
if "hp" in constructor or "aruba" in constructor: if "hp" in constructor or "aruba" in constructor:
self.login_hp() self.login_hp()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment