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

Fix OCI import issue #4178

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Changes from 1 commit
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
4 changes: 3 additions & 1 deletion sky/clouds/oci.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,9 @@ def get_credential_file_mounts(self) -> Dict[str, str]:
api_key_file = oci_cfg[
'key_file'] if 'key_file' in oci_cfg else 'BadConf'
sky_cfg_file = oci_utils.oci_config.get_sky_user_config_file()
except (ImportError, oci_adaptor.oci.exceptions.ConfigFileNotFound):
except ImportError:
return {}
except oci_adaptor.oci.exceptions.ConfigFileNotFound:
yika-luo marked this conversation as resolved.
Show resolved Hide resolved
return {}

# OCI config and API key file are mandatory
Expand Down
Loading