Skip to content

Commit

Permalink
Merge pull request #427 from IBM/config-fix
Browse files Browse the repository at this point in the history
Fix get config parameter function.
  • Loading branch information
daw3rd authored Jul 23, 2024
2 parents 29e83ed + 0dd19e4 commit 76e3d9a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,17 @@ def __dict_to_str(dict_val: dict[str, str], initial_indent: str, indent_per_leve
@staticmethod
def get_config_parameter(params: dict[str, Any]) -> str:
"""
Get parameters for multi launch
Get the key name of the config parameter
:param params: original parameters
:return: tuple of name of repeated parameter, list of repeated parameters, and dict of non changing ones
:return: the name of the key for the config parameter
"""
# find config parameter
config = None
for key in params.keys():
if key.startswith("data") and key.endswith("config"):
config = key
break
if params[key] is not None and params[key] != "None" and len(params[key]) > 0:
config = key
break
return config

@staticmethod
Expand Down

0 comments on commit 76e3d9a

Please sign in to comment.