action_set() does not support nested data

Bug #1578131 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
Triaged
High
Unassigned

Bug Description

The action-set hook environment tool supports a custom '.' notation to specify nested keys, per https://jujucharms.com/docs/devel/developer-actions#action-set. charmhelpers.core.hookenv.action_set() does not support this, and you can only return a flat mapping.

charmhelpers.core.hookenv.action_set(dict(subdict=dict(key='value',key2='value2')) should work as expected, running:
   action-set subdict.key=value subdict.key2=value2

Stuart Bishop (stub)
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.