From 7a575fff4c474e04368a693aceb261eab1c6f3d4 Mon Sep 17 00:00:00 2001 From: David Radley Date: Wed, 11 Jan 2023 16:44:20 +0000 Subject: [PATCH] git7229 revert change Signed-off-by: David Radley --- .../server/OMAGServerAdminServices.java | 2 +- .../admin/OMRSConfigurationFactory.java | 23 ++++--------------- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/open-metadata-implementation/admin-services/admin-services-server/src/main/java/org/odpi/openmetadata/adminservices/server/OMAGServerAdminServices.java b/open-metadata-implementation/admin-services/admin-services-server/src/main/java/org/odpi/openmetadata/adminservices/server/OMAGServerAdminServices.java index a9a79d4059c..d82063bdf19 100644 --- a/open-metadata-implementation/admin-services/admin-services-server/src/main/java/org/odpi/openmetadata/adminservices/server/OMAGServerAdminServices.java +++ b/open-metadata-implementation/admin-services/admin-services-server/src/main/java/org/odpi/openmetadata/adminservices/server/OMAGServerAdminServices.java @@ -2776,7 +2776,7 @@ public VoidResponse addAuditLogDestination(String userId, { OMRSConfigurationFactory configurationFactory = new OMRSConfigurationFactory(); - repositoryServicesConfig = configurationFactory.getDefaultRepositoryServicesConfig(false); + repositoryServicesConfig = configurationFactory.getDefaultRepositoryServicesConfig(); } List auditLogDestinations = repositoryServicesConfig.getAuditLogConnections(); diff --git a/open-metadata-implementation/repository-services/repository-services-implementation/src/main/java/org/odpi/openmetadata/repositoryservices/admin/OMRSConfigurationFactory.java b/open-metadata-implementation/repository-services/repository-services-implementation/src/main/java/org/odpi/openmetadata/repositoryservices/admin/OMRSConfigurationFactory.java index b611e07995f..84ca4a5d08d 100644 --- a/open-metadata-implementation/repository-services/repository-services-implementation/src/main/java/org/odpi/openmetadata/repositoryservices/admin/OMRSConfigurationFactory.java +++ b/open-metadata-implementation/repository-services/repository-services-implementation/src/main/java/org/odpi/openmetadata/repositoryservices/admin/OMRSConfigurationFactory.java @@ -353,31 +353,18 @@ public CohortConfig getDefaultCohortConfig(String localServerName, /** * Returns a repository services config with the audit log set up. * - * @param addDefaultAuditLog when set add a default audit log. * @return minimally configured repository services config */ - public RepositoryServicesConfig getDefaultRepositoryServicesConfig(boolean addDefaultAuditLog) + public RepositoryServicesConfig getDefaultRepositoryServicesConfig() { RepositoryServicesConfig repositoryServicesConfig = new RepositoryServicesConfig(); - if (addDefaultAuditLog) - { - List auditLogStoreConnections = new ArrayList<>(); - auditLogStoreConnections.add(connectorConfigurationFactory.getDefaultAuditLogConnection()); - repositoryServicesConfig.setAuditLogConnections(auditLogStoreConnections); - } + List auditLogStoreConnections = new ArrayList<>(); - return repositoryServicesConfig; - } + auditLogStoreConnections.add(connectorConfigurationFactory.getDefaultAuditLogConnection()); + repositoryServicesConfig.setAuditLogConnections(auditLogStoreConnections); - /** - * Returns a repository services config with the audit log set up. - * - * @return minimally configured repository services config - */ - public RepositoryServicesConfig getDefaultRepositoryServicesConfig() - { - return getDefaultRepositoryServicesConfig(true); + return repositoryServicesConfig; } }