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

[Feature]: get the same information about the controller as using juju show-controller #796

Open
rgildein opened this issue Jan 20, 2023 · 1 comment
Labels
incomplete old issue, check if it's still valid wishlisted requested feature

Comments

@rgildein
Copy link

Description

It would really helpful if we could get information about the controller as can be done with juju show-controller. Currently, it is not possible to get such data using libjuju.

There is info function in the controller, but that returns a different output. I previously reported it as bug #795, but after discussion I found out that `controller.info' is not suitable for this and it's designed to return info about connection to controller.

Urgency

Casually wishlisting

Code I'd Like to Run

import asyncio
from juju.controller import Controller


async def get_info():
    controller = Controller()
    await controller.connect()
    info = await controller.show_controller()
    print(info)  # this should provide same info as `juju show-controller <name>`

asyncio.run(get_info())
@rgildein rgildein added the wishlisted requested feature label Jan 20, 2023
@github-actions
Copy link

This issue is marked as incomplete because it has been open 30 days with no activity. Please remove incomplete label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the incomplete old issue, check if it's still valid label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete old issue, check if it's still valid wishlisted requested feature
Projects
None yet
Development

No branches or pull requests

1 participant