Descriptionjuju status: add service/unit filters
Any positional arguments after juju status are
now interpreted as filters for either service or
unit. If the filter includes a '/', then it is
considered a unit filter, else a service filter.
Service filters are transformed to unit filters
by appending '/*'.
A unit passes a filter if one of the following
conditions is true:
- Its name matches the pattern.
- The unit is a principal, and one of its
subordinates matches the pattern.
- The unit is a subordinate, and its principal
matches the pattern.
If all units of a service are filtered out, then
the service is filtered out; if all units of a
machine are filtered out, the machine is filtered
out (except to fill out the container hierarchy).
Unlike in pyjuju, this implementation allows
only the '*' wildcard in patterns. '?' and
character ranges are not permitted.
Partially fixes bug 1121916
https://code.launchpad.net/~axwalk/juju-core/lp1121916-juju-status-filters/+merge/178004
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : juju status: add service/unit filters #
Total comments: 2
Patch Set 3 : juju status: add service/unit filters #
Total comments: 23
Patch Set 4 : juju status: add service/unit filters #
Total comments: 8
Patch Set 5 : juju status: add service/unit filters #
Total comments: 2
MessagesTotal messages: 18
|