Skip to content

Commit

Permalink
comfig might be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
joente committed Jan 6, 2025
1 parent 0d927e2 commit 1997d28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ def _read(cls):
cls.compose_data['x-infrasonar-template']
with open(CONFIG_FILE, 'r') as fp:
cls.config_data = yaml.safe_load(fp)

if not isinstance(cls.config_data, dict):
# may be None when empty config
logging.warning('no configurations found')
cls.config_data = {}
try:
conf = ConfigObj(ENV_FILE)
agentcore_zone_id = \
Expand Down
2 changes: 1 addition & 1 deletion lib/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '1.0.2'
__version__ = '1.0.3'

IS_RELEASE_VERSION = '-' not in __version__

0 comments on commit 1997d28

Please sign in to comment.