From bc6a3451df22ebf0e564825b20b793f3421c494b Mon Sep 17 00:00:00 2001 From: Antonio Francisco Date: Mon, 4 Oct 2021 18:54:39 -0300 Subject: [PATCH] On update, try to redeploy if EVC is enabled. (#60) When EVC is inactive, only if the enable field was updated the deploy method was called. Now, always call it if EVC is enabled. Fixes #38 Co-authored-by: Italo Valcy S Brito --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 0cbd8303..1acb15eb 100644 --- a/main.py +++ b/main.py @@ -235,7 +235,7 @@ def update(self, circuit_id): evc.remove() evc.deploy() else: - if enable is True: # enable if inactive + if evc.is_enabled(): # enable if inactive with evc.lock: evc.deploy() result = {evc.id: evc.as_dict()}