massakam opened a new pull request #11878:
URL: https://github.com/apache/pulsar/pull/11878


   ### Motivation
   
   In Pulsar version 2.4.2 and earlier, the pulsar-admin command output a list 
of strings in the following format:
   ```sh
   $ ./bin/pulsar-admin tenants list
   
   public
   pulsar
   sample
   ```
   
   On the other hand, in 2.5.0 and later versions, each string is enclosed in 
double quotes:
   ```sh
   $ ./bin/pulsar-admin tenants list
   
   "public"
   "pulsar"
   "sample"
   ```
   
   This is due to https://github.com/apache/pulsar/pull/5313. With this change, 
strings are now displayed after being encoded to JSON. I don't think these 
double quotes are needed.
   
   ### Modifications
   
   If the type of the variable to be output is `String`, it will be output 
without JSON encoding. 
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: (no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to