rundeck-cli
rundeck-cli copied to clipboard
rd jobs list does not support all output keys
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.
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 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.