all hook tools should support --format

Bug #1129130 reported by Roger Peppe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Tim Penhey

Bug Description

Some charms assume they can pass --format=json to hook tools that
don't currently understand it (relation-set being one example).

We should support --format on all hook tools that the python version
supports it on.

Related branches

Revision history for this message
William Reade (fwereade) wrote :

IMO we should only "support" it in that we don't fail -- it should be ignored and generate a deprecation warning (so that maybe, one day, we can accept input in multiple formats).

Roger Peppe (rogpeppe)
Changed in juju-core:
importance: Undecided → High
Tim Penhey (thumper)
Changed in juju-core:
assignee: nobody → Tim Penhey (thumper)
status: New → Triaged
Roger Peppe (rogpeppe)
Changed in juju-core:
status: Triaged → Confirmed
Tim Penhey (thumper)
Changed in juju-core:
status: Confirmed → Triaged
Tim Penhey (thumper)
Changed in juju-core:
status: Triaged → In Progress
milestone: none → 1.9.12
Revision history for this message
Patrick Hetu (patrick-hetu) wrote :

I'm not sure of me but it is possible that "relation-list" also don't have the --format flag?

Tim Penhey (thumper)
Changed in juju-core:
status: In Progress → Fix Committed
Changed in juju-core:
status: Fix Committed → Fix Released
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.