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

Add a new method like as_dict that returns labels with juju_ prefix #18

Open
Abuelodelanada opened this issue Mar 7, 2024 · 0 comments

Comments

@Abuelodelanada
Copy link
Contributor

Abuelodelanada commented Mar 7, 2024

Enhancement

In juju_topology.py we should add a new method like .as_dict that returns the labels prefixed with juju_.

Without this method we have to do things like these:

                        # TODO: We should add a new method in juju_topology.py
                        # that like `as_dict` method, returns the keys with juju_ prefix
                        **{
                            "juju_{}".format(key): value
                            for key, value in topo_as_dict.items()
                            if value
                        },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants