From f6ce73049e558b5a32ecf1eb550baafe740897de Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Mon, 24 Jan 2022 06:30:46 -0800 Subject: [PATCH] Remove debug log statements Remove several statements which were added to verify client behaviour with H-API calls. Change-Id: Ie535eaf68ec5c55582264df1db8f9bf5122e6455 --- vmware_nsxlib/v3/policy/core_resources.py | 1 - vmware_nsxlib/v3/policy/transaction.py | 5 ----- 2 files changed, 6 deletions(-) diff --git a/vmware_nsxlib/v3/policy/core_resources.py b/vmware_nsxlib/v3/policy/core_resources.py index b29b48b0..61944b93 100644 --- a/vmware_nsxlib/v3/policy/core_resources.py +++ b/vmware_nsxlib/v3/policy/core_resources.py @@ -4057,7 +4057,6 @@ class NsxPolicySecurityPolicyBaseApi(NsxPolicyResourceBase): patch_entries = [] for entry in entries: rule = entry.get_obj_dict() - LOG.debug("#### ADDING ENTRY: %s", entry) patch_entries.append( self.entry_def.adapt_from_rule_dict( rule, domain_id, map_id)) diff --git a/vmware_nsxlib/v3/policy/transaction.py b/vmware_nsxlib/v3/policy/transaction.py index 33c0e1b8..9eb215ef 100644 --- a/vmware_nsxlib/v3/policy/transaction.py +++ b/vmware_nsxlib/v3/policy/transaction.py @@ -117,7 +117,6 @@ class NsxPolicyTransaction(object): resource_class: node} if delete: wrapper_dict.update({'marked_for_delete': True}) - LOG.debug("### WRAPPER DICT:%s", wrapper_dict) return wrapper_dict def _find_parent_in_dict(self, d, resource_def, level=1): @@ -137,7 +136,6 @@ class NsxPolicyTransaction(object): node = {'resource_type': resource_type, 'id': parent_id, 'children': []} - LOG.debug("#### UNEXPECTED: %s", resource_type) return self._build_wrapper_dict(resource_class, node), node # iterate over all objects in d, and look for resource type @@ -207,9 +205,6 @@ class NsxPolicyTransaction(object): child_resource_ref = ( resource_def.has_attr('child_resource_ref') and resource_def.get_attr('child_resource_ref')) - LOG.debug("#### BEFORE WRAP CALL") - LOG.debug("#### NODE XXX: %s", node) - LOG.debug("#### CHILD REF:%s", child_resource_ref) meh = self._build_wrapper_dict(resource_class, node, resource_def.get_delete(),