From 78e0fcdb38abc7cdcfc05d12cf8bfbd953f08c15 Mon Sep 17 00:00:00 2001 From: Ant Date: Mon, 12 May 2025 11:44:30 -0400 Subject: [PATCH] #39 - Improve add_data_sources.py example --- CHANGELOG.md | 4 ++++ python/configuration/add_data_sources.py | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index db2782f..1b920e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog], [markdownlint], and this project adheres to [Semantic Versioning]. +### Changed in 0.0.6 + +- Improved Python add_data_sources.py + ### Changed in 0.0.5 - Modified configuration examples for new szconfig and szconfigmanager pattern diff --git a/python/configuration/add_data_sources.py b/python/configuration/add_data_sources.py index f7435e9..fe3d95c 100755 --- a/python/configuration/add_data_sources.py +++ b/python/configuration/add_data_sources.py @@ -22,8 +22,7 @@ _ = sz_config.add_data_source(data_source) new_config = sz_config.export() - new_config_id = sz_configmanager.register_config(new_config, INSTANCE_NAME) - sz_configmanager.set_default_config_id(config_id) + new_config_id = sz_configmanager.set_default_config(new_config, "Add data source CUSTOMERS") sz_config = sz_configmanager.create_config_from_config_id(new_config_id) response = sz_config.get_data_sources()