summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorMilan Šťastný <mistastn@cisco.com>2023-05-02 21:46:14 +0200
committerGitHub <noreply@github.com>2023-05-02 12:46:14 -0700
commit0a7c1a55bb316479bc57768eac243becfd1d2eec (patch)
tree53f4dbdd04540f822a606d6c1942d71ba8ea6160 /CHANGELOG.md
parent4a54274d9c21bb9500989346d0d0ee22ba6076b3 (diff)
downloadchef-0a7c1a55bb316479bc57768eac243becfd1d2eec.tar.gz
Fix output of cookbook list/show (#13654)
This PR turns the output from the following: ```json $ knife cookbook list -a -F json [ "7-zip 1.0.2", "api_docs 0.1.0", "apt 1.1.1", "ark 4.0.0 3.1.1 0.9.0 0.3.0", "audit-cis 0.4.0", "authenticator 0.1.5 0.1.4", "aws-static-ip-ha 0.1.0", "aws-tools 0.0.5" ] ``` to this ```json $ knife cookbook list -a -F json { "7-zip": [ "1.0.2" ], "api_docs": [ "0.1.0" ], "apt": [ "1.1.1" ], "ark": [ "4.0.0", "3.1.1", "0.9.0", "0.3.0" ], "audit-cis": [ "0.4.0" ], "authenticator": [ "0.1.5", "0.1.4" ], "aws-static-ip-ha": [ "0.1.0" ], "aws-tools": [ "0.0.5" ] } ``` This has a potential of breaking peoples script if they adjusted to the broken format, that is why this is marked as a breaking change. This brings the output of the following in line with other listings coming out of chef ### Examples of the affected outputs: #### knife cookbook show summary(default) ``` $ knife cookbook show ark ark: 4.0.0 3.1.1 0.9.0 0.3.0 ``` text ``` $ knife cookbook show ark -F text ark: 4.0.0 3.1.1 0.9.0 0.3.0 ``` json ```json $ knife cookbook show ark -F json { "ark": [ "4.0.0", "3.1.1", "0.9.0", "0.3.0" ] } ``` yaml ```yaml $ knife cookbook show ark -F yaml --- ark: - 4.0.0 - 3.1.1 - 0.9.0 - 0.3.0 ``` pp ``` $ knife cookbook show ark -F pp {"ark"=>["4.0.0", "3.1.1", "0.9.0", "0.3.0"]} ``` #### knife cookbook list summary(default) ``` $ knife cookbook list -a 7-zip: 1.0.2 api_docs: 0.1.0 apt: 1.1.1 ark: 4.0.0 3.1.1 0.9.0 0.3.0 audit-cis: 0.4.0 auditbeat: 0.0.42 authenticator: 0.1.5 0.1.4 aws-static-ip-ha: 0.1.0 aws-tools: 0.0.5 ``` text ``` $ knife cookbook list -a -F text 7-zip: 1.0.2 api_docs: 0.1.0 apt: 1.1.1 ark: 4.0.0 3.1.1 0.9.0 0.3.0 audit-cis: 0.4.0 auditbeat: 0.0.42 authenticator: 0.1.5 0.1.4 aws-static-ip-ha: 0.1.0 aws-tools: 0.0.5 ``` json ```json $ knife cookbook list -a -F json { "7-zip": [ "1.0.2" ], "api_docs": [ "0.1.0" ], "apt": [ "1.1.1" ], "ark": [ "4.0.0", "3.1.1", "0.9.0", "0.3.0" ], "audit-cis": [ "0.4.0" ], "authenticator": [ "0.1.5", "0.1.4" ], "aws-static-ip-ha": [ "0.1.0" ], "aws-tools": [ "0.0.5" ], } ``` yaml ```yaml $ knife cookbook list -a -F yaml --- 7-zip: - 1.0.2 api_docs: - 0.1.0 apt: - 1.1.1 ark: - 4.0.0 - 3.1.1 - 0.9.0 - 0.3.0 audit-cis: - 0.4.0 authenticator: - 0.1.5 - 0.1.4 aws-static-ip-ha: - 0.1.0 aws-tools: - 0.0.5 ``` pp ``` $ knife cookbook list -a -F pp {"7-zip"=>["1.0.2"], "api_docs"=>["0.1.0"], "apt"=>["1.1.1"], "ark"=>["4.0.0", "3.1.1", "0.9.0", "0.3.0"], "audit-cis"=>["0.4.0"], "authenticator"=>["0.1.5", "0.1.4"], "aws-static-ip-ha"=>["0.1.0"], "aws-tools"=>["0.0.5"], } ``` Closes #13653 Signed-off-by: Milan Stastny <mistastn@cisco.com>
Diffstat (limited to 'CHANGELOG.md')
0 files changed, 0 insertions, 0 deletions