We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9555623 commit 5c828bdCopy full SHA for 5c828bd
src/oci/config.py
@@ -111,7 +111,7 @@ def validate_config(config, **kwargs):
111
errors = {}
112
for required_key in REQUIRED:
113
fallback_key = REQUIRED_FALLBACKS.get(required_key)
114
- if required_key not in config and fallback_key not in config:
+ if (required_key not in config or config[required_key] is None) and (fallback_key not in config or config[fallback_key] is None):
115
# If region is not provided, check the env variable
116
if required_key == REGION_KEY_NAME:
117
logger.debug("Region not found in config, checking environment variable {}".format(REGION_ENV_VAR_NAME))
0 commit comments