rundeck-cli icon indicating copy to clipboard operation
rundeck-cli copied to clipboard

rd jobs list does not support all output keys

Open philippeganz opened this issue 5 years ago • 2 comments

A direct request to the server's API at $RD_URL/project/myproject/jobs/ returns an XML/YAML with the data of all the jobs inside a project including serverNodeUUID, scheduled, serverOwner, scheduleEnabled and enabled which are documented to not be available for rd jobs list. Would be much appreciated if these keys would also be available in the output formatting option.

philippeganz avatar Aug 15 '19 13:08 philippeganz

Is this a CLI limitation or an API limitation?

./rd nodes list --project Testing --outformat "%nodename :: %username :: %ssh-password-storage-path :: %sudo-command-enabled :: %sudo-password-storage-path"

The output's pretty weird:

my_server153 :: my_id :: -password-storage-path :: -command-enabled :: -password-storage-path
my_server150 :: my_id :: -password-storage-path :: -command-enabled :: -password-storage-path
my_server151 :: my_id :: -password-storage-path :: -command-enabled :: -password-storage-path

The attributes are returned as strings without the "ssh" prefix.

(v1.3.4) here.

niall-munnelly avatar Mar 25 '21 14:03 niall-munnelly

@niall-munnelly that looks like the "%ssh-password-storage-path" is only seeing the "%ssh", converts it to blank, and then emits -password-storage-path. I think the %attribute is breaking on the - char.

gschueler avatar May 24 '21 22:05 gschueler