Run command doesn't supports specific targets

Bug #1456332 reported by Jorge Niedbalski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-jujuclient
Fix Committed
Undecided
Jorge Niedbalski

Bug Description

The run command, doesn't support to target specific services, units or machines.

As is currently implemented, the target parameter exists, but is not usable for specifying
a service, unit or machine set.

This bug tracks that fix.

Related branches

Changed in python-jujuclient:
assignee: nobody → Jorge Niedbalski (niedbalski)
status: New → In Progress
Changed in python-jujuclient:
status: In Progress → Fix Committed
Revision history for this message
Gabriel Samfira (gabriel-samfira) wrote :

I am not sure if this is a recent change in juju, but with juju 1.24, the Machines, Units, Services arrays need to be part of Params:

{
  "Request": "Run",
  "Params": {
      "Units": [
        "testcharm/0"
      ],
      "Commands": "top",
      "Timeout": 3000000000
  },
  "Type": "Client",
  "RequestId": 4
}

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.