minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

mc support commands: allow --json in online mode #4859

Closed anjalshireesh closed 8 months ago

anjalshireesh commented 8 months ago

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.

Description

There was a validation that said --json is supported only when --airgap is also passed for SUBNET related mc support commands.

Remove this validation to allow --json to be passed even in online mode. In this scenario, print a status JSON after upload to SUBNET.

While at it,

Motivation and Context

Ensure --json is supported in all scenarios

How to test this PR?

Types of changes

Checklist: