Skip to content

Commit

Permalink
fix: change modular input template according to globalConfig file (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys authored Jun 6, 2023
1 parent 5d39bd2 commit 24c8658
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_account_api_key(session_key: str, account_name: str):
realm=f"__REST_CREDENTIAL__#{ADDON_NAME}#configs/conf-{{cookiecutter.addon_name}}_account",
)
account_conf_file = cfm.get_conf("{{cookiecutter.addon_name}}_account")
return account_conf_file.get(account_name).get("username")
return account_conf_file.get(account_name).get("api_key")


def get_data_from_api(logger: logging.Logger, api_key: str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_account_api_key(session_key: str, account_name: str):
realm=f"__REST_CREDENTIAL__#{ADDON_NAME}#configs/conf-demo_addon_for_splunk_account",
)
account_conf_file = cfm.get_conf("demo_addon_for_splunk_account")
return account_conf_file.get(account_name).get("username")
return account_conf_file.get(account_name).get("api_key")


def get_data_from_api(logger: logging.Logger, api_key: str):
Expand Down

0 comments on commit 24c8658

Please sign in to comment.