Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rd jobs list does not support all output keys #263

Open
philippeganz opened this issue Aug 15, 2019 · 2 comments
Open

rd jobs list does not support all output keys #263

philippeganz opened this issue Aug 15, 2019 · 2 comments

Comments

@philippeganz
Copy link

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.

@niall-munnelly
Copy link

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.

@gschueler
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants