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

braincube.get_name() is broken #104

Open
mathisc opened this issue Jan 30, 2024 · 0 comments
Open

braincube.get_name() is broken #104

mathisc opened this issue Jan 30, 2024 · 0 comments

Comments

@mathisc
Copy link

mathisc commented Jan 30, 2024

Describe the bug
braincube.get_name() is broken (at least on my local stack and internal preprod)

To Reproduce

from braincube_connector import braincube, client

client.get_instance(config_dict={"api_key": api_key, "domain": domain, "verify": False})
bc = braincube.get_braincube(braincube_name)
print(bc.get_name())

I am getting the following error :

python3.10/site-packages/braincube_connector/bases/base_entity.py", line 216, in get_name
    return self._metadata[self.get_parameter_key("name")]
KeyError: 'name'

Likely because name is nested under product (and not under braincube directly) :
{'product': {... 'name': 'testBraincube'}}

Expected behavior
I expect the name of the braincube instance to show up

Versions:
braincube-connector==2.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant