remove the deprecated mark for all `actions_*` functions
Bug #1926317 reported by
Robert Gildein
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Triaged
|
High
|
Unassigned |
Bug Description
The juju team returns to using `action-*` instead of `function-*`.
Based on this, it is necessary to undo mark for all functions `action_*`
(e.g. `action_set`) as deprecated and vice versa to mark the functions
`funcion_*` (e.g. `function_set`) as deprecated.
At the same time, it is necessary to maintain the functionality of both,
which will be best achieved in the same way as it is now done for the
`function_*` functions.
e.g.
```python
def action_
"""Gets the value of an action parameter, or all key/value param pairs"""
cmd = ['action-get']
# Fallback for older charms.
if not cmd_exists(
cmd = ['function-get']
...
```
Changed in charm-helpers: | |
status: | New → Triaged |
importance: | Undecided → High |
To post a comment you must log in.
This commit [1] in Juju confirms the transition back to actions.
--- /github. com/juju/ juju/commit/ 8e1d9c2ccbac461 dffae48b5534514 d1c86c20f1
[1]: https:/