Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] CALM_DSL_CONFIG_FILE_LOCATION envvar is ignored #237

Closed
pipoe2h opened this issue Jul 24, 2022 · 0 comments · Fixed by #246
Closed

[Bug] CALM_DSL_CONFIG_FILE_LOCATION envvar is ignored #237

pipoe2h opened this issue Jul 24, 2022 · 0 comments · Fixed by #246
Assignees
Labels
bug Something isn't working

Comments

@pipoe2h
Copy link

pipoe2h commented Jul 24, 2022

Describe the bug
CALM_DSL_CONFIG_FILE_LOCATION envvar is ignored. Inline -c config_file works.

Branch/Container
master

To Reproduce
Steps to reproduce the behavior:

  1. export CALM_DSL_CONFIG_FILE_LOCATION=/my/config_file/path
  2. make sure you don't have a config.ini file on your $HOME/.calm/config.ini
  3. run something like calm get bps
  4. See error
root ➜ /workspaces/calm-community (main ✗) $ calm get bps
[2022-07-24 09:06:30] [ERROR] [calm.dsl.config.context:62] Host IP not found. Please provide it in config file or set environment variable 'CALM_DSL_PC_IP'
[2022-07-24 09:06:30] [ERROR] [calm.dsl.config.context:53] Invalid config file location '/root/.calm/config.ini'

Expected behavior
It should use the environment variable, and if it doesn't exist, fallback to the default path

Findings/Troubleshooting Done
With inline configuration it works

calm -c config/forrester.ini get bps

** System Configuration:**

  • OS: container python:3-bullseye
  • Python: 3.10.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants