-
Notifications
You must be signed in to change notification settings - Fork 318
Closed
Labels
staleStale - Bot reminderStale - Bot reminder
Description
If you try to supply API and APP keys via env variables in a container and your Datadog site is datadoghq.eu it will fail.
This is due to dogshell lacking a site config parameter or environment variable.
I have tried a workaround by supplying the site config in a dogrc file while the KEYs via env variables.
However due to this code the dogrc file will never be used if you supply keys via env variables.
datadogpy/datadog/dogshell/common.py
Lines 49 to 56 in ec571f6
| if api_key is not None and app_key is not None: | |
| self["api_key"] = api_key | |
| self["app_key"] = app_key | |
| else: | |
| if os.access(config_file, os.F_OK): | |
| config.read(config_file) | |
| if not config.has_section("Connection"): | |
| report_errors({"errors": ["%s has no [Connection] section" % config_file]}) |
Adding the keys to a config file in the container is not a viable solution.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
staleStale - Bot reminderStale - Bot reminder