From 6cc693150d4111f30b3ce148ae32d06f9c65085d Mon Sep 17 00:00:00 2001 From: Gordon Zhang Date: Thu, 18 Apr 2019 11:30:26 -0700 Subject: [PATCH] Add "tags" to _update_helper Tags are currently missing. Which causes reset tags to default value None Change-Id: I58983cea84aacb456c1eb05787268d51502e85a3 --- vmware_nsxlib/v3/policy/lb_resources.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmware_nsxlib/v3/policy/lb_resources.py b/vmware_nsxlib/v3/policy/lb_resources.py index c1048297..4e98c995 100644 --- a/vmware_nsxlib/v3/policy/lb_resources.py +++ b/vmware_nsxlib/v3/policy/lb_resources.py @@ -672,6 +672,10 @@ class NsxPolicyLoadBalancerVirtualServerAPI(NsxPolicyResourceBase): if kwargs.get(k) == IGNORE and vs_data.get(k): kwargs[k] = vs_data[k] + if (kwargs.get('tags', IGNORE) == IGNORE and + vs_data.get('tags')): + kwargs['tags'] = vs_data['tags'] + self._update( virtual_server_id=virtual_server_id, tenant=tenant,