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 nodes list outformat doesn't support dashes #352

Closed
gschueler opened this issue May 24, 2021 · 0 comments · Fixed by #353
Closed

rd nodes list outformat doesn't support dashes #352

gschueler opened this issue May 24, 2021 · 0 comments · Fixed by #353

Comments

@gschueler
Copy link
Member

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.

Originally posted by @niall-munnelly in #263 (comment)

gschueler added a commit that referenced this issue May 24, 2021
* support `_-:` chars in output format key names
gschueler added a commit that referenced this issue May 26, 2021
* support `_-:` chars in output format key names
gschueler added a commit that referenced this issue May 28, 2021
…t-doesn-t-support-dashes

Fix #352 node attribute expansion not working for ssh-xyz attributes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant