Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/oci/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def validate_config(config, **kwargs):
errors = {}
for required_key in REQUIRED:
fallback_key = REQUIRED_FALLBACKS.get(required_key)
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):
# If region is not provided, check the env variable
if required_key == REGION_KEY_NAME:
logger.debug("Region not found in config, checking environment variable {}".format(REGION_ENV_VAR_NAME))
Expand Down