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
The way that we are getting the charm name is by applying a regex to get rid off charm origin, architecture and revision.
It seems to me that a new field in this class like charm_name is simple and can help us get the name directly without a workaround.
#901
#### Description
Adds the `charm_name` property in `Application` object, which saves people from going through the status and stripping things from the charm URL, just to get the name of the charm.
Fixes#888
The issue in there was that the `FullStatus` actually returns the charm URL as the `charm` field in `[] ApplicationStatus` field, but the client is aliasing it before printing so you see only the charm name in the `juju status --format yaml`
https://github.com/juju/juju/blob/87d8ddc9de5219b3a1d854e14ee4c90a7d781d25/cmd/juju/status/formatter.go#L267
#### QA Steps
```
tox -e integration -- tests/integration/test_application.py::test_app_charm_name
```
Description
We are using libjuju to access status of applications.
A simple juju status --format yaml gives this kind of output:
Using libjuju gives a ApplicationStatus object containing the following fields:
The way that we are getting the charm name is by applying a regex to get rid off charm origin, architecture and revision.
It seems to me that a new field in this class like
charm_name
is simple and can help us get the name directly without a workaround.Urgency
It would save from a weird workaround
Code I'd Like to Run
The text was updated successfully, but these errors were encountered: