remove the deprecated mark for all `actions_*` functions

Bug #1926317 reported by Robert Gildein
8
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_get(key=None):
    """Gets the value of an action parameter, or all key/value param pairs"""
    cmd = ['action-get']
    # Fallback for older charms.
    if not cmd_exists('function-get'):
        cmd = ['function-get']
    ...
```

Revision history for this message
Robert Gildein (rgildein) wrote :

This commit [1] in Juju confirms the transition back to actions.

---
[1]: https://github.com/juju/juju/commit/8e1d9c2ccbac461dffae48b5534514d1c86c20f1

Frode Nordahl (fnordahl)
Changed in charm-helpers:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.