Skip to content

Commit

Permalink
Correct location of sync_only option
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Nov 21, 2023
1 parent 1e4ecd5 commit c973468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openldap_opencensus_stats/config_transformers/child_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def process(configuration):

config = copy.deepcopy(configuration)
for server_config in config.get('ldap_servers'):
ldap_server = ChildObjectConfigurationTransformer.get_ldap_server(server_config)
if not ldap_server.get('sync_only', False):
if not server_config.get('sync_only', False):
ldap_server = ChildObjectConfigurationTransformer.get_ldap_server(server_config)
server_config['object'] = ChildObjectConfigurationTransformer.process_objects_for_ldap_server(
configuration=server_config.get('object', {}),
dn='',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def process(configuration):

config = copy.deepcopy(configuration)
for server_config in config.get('ldap_servers'):
ldap_server = ConfigurationTransformer.get_ldap_server(server_config=server_config)
if not ldap_server.get('sync_only', False):
if not server_config.get('sync_only', False):
ldap_server = ConfigurationTransformer.get_ldap_server(server_config=server_config)
server_config['object'] = MetricNameInterpolationConfigurationTransformer.process_objects_for_ldap_server(
configuration=server_config.get('object', {}),
dn='',
Expand Down

0 comments on commit c973468

Please sign in to comment.