Skip to content

Commit 78e0fcd

Browse files
committed
#39 - Improve add_data_sources.py example
1 parent 24b775f commit 78e0fcd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog], [markdownlint],
66
and this project adheres to [Semantic Versioning].
77

8+
### Changed in 0.0.6
9+
10+
- Improved Python add_data_sources.py
11+
812
### Changed in 0.0.5
913

1014
- Modified configuration examples for new szconfig and szconfigmanager pattern

python/configuration/add_data_sources.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
_ = sz_config.add_data_source(data_source)
2323

2424
new_config = sz_config.export()
25-
new_config_id = sz_configmanager.register_config(new_config, INSTANCE_NAME)
26-
sz_configmanager.set_default_config_id(config_id)
25+
new_config_id = sz_configmanager.set_default_config(new_config, "Add data source CUSTOMERS")
2726

2827
sz_config = sz_configmanager.create_config_from_config_id(new_config_id)
2928
response = sz_config.get_data_sources()

0 commit comments

Comments
 (0)