From 04b638dc8833f3e63201b383548b3c45dcf9a739 Mon Sep 17 00:00:00 2001 From: azzamsa Date: Fri, 24 Jul 2020 13:10:09 +0700 Subject: [PATCH] Fix - can't toggle gateway high availability --- pyvcloud/vcd/gateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyvcloud/vcd/gateway.py b/pyvcloud/vcd/gateway.py index cc659f66d..a59bb967c 100644 --- a/pyvcloud/vcd/gateway.py +++ b/pyvcloud/vcd/gateway.py @@ -395,7 +395,7 @@ def edit_gateway(self, newname=None, desc=None, ha=None): gateway.Description = E.Description(desc) else: gateway.insert(0, E.Description(desc)) - if ha: + if ha is not None: gateway.Configuration.HaEnabled = E.HaEnabled(ha) return self.client.put_linked_resource(