You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That dictionary passes the validate_config() check.
However, when attempting to create a VirtualNetworkClient I get a KeyError for pass_phrase.
After looking at the oraclebmc/config.py and oraclebmc/core/virtual_network_client.py source code, it appears that client code makes the assumption that all configuration dictionaries have these optional fields populated. Configurations loaded with config.from_file() automatically pre-populate these fields. But synthetic ones obviously do not.
The client classes should validate whether these optional values are present in the configuration before assigning them in their constructors.
The text was updated successfully, but these errors were encountered:
The documentation states:
So I create a simple dictionary similar to this:
That dictionary passes the
validate_config()
check.However, when attempting to create a
VirtualNetworkClient
I get aKeyError
forpass_phrase
.After looking at the
oraclebmc/config.py
andoraclebmc/core/virtual_network_client.py
source code, it appears that client code makes the assumption that all configuration dictionaries have these optional fields populated. Configurations loaded withconfig.from_file()
automatically pre-populate these fields. But synthetic ones obviously do not.The client classes should validate whether these optional values are present in the configuration before assigning them in their constructors.
The text was updated successfully, but these errors were encountered: