pantheon-systems / terminus

The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform
https://pantheon.io
Other
318 stars 195 forks source link

Incorrect data returned for `org:site:list` using `--format list` when `--fields` has a single argument #2590

Closed ccharlton closed 5 months ago

ccharlton commented 5 months ago

Platform

(X) MacOS ( ) Linux ( ) WSL2

Installed Via

(X) Homebrew ( ) Apt Package ( ) Manually

PHP Version

( ) 7.4x ( ) 8.0 ( ) 8.1 (X) 8.3.7

Terminus Version

3.4.0

Command Executed

terminus org:site:list --format list --fields name -- $ORG

Expected behavior

Expected specified field data to be returned.

Actual behavior

Terminus is only returning a list of Site IDs (UUID) when formatting org:site:list as a list when --fields (plural) has one argument that is not id. The alternate single param --field works as expected, but it seemed odd that --fields would behave differently when it only has one value.

ander-murane commented 5 months ago

@ccharlton kindly open bugs in Jira instead of GitHub. See Greg's comments in the corresponding ticket, BUGS-8210