Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph: add read-only mode for external cluster script
Adding read-only mode for external cluster script. This will add cli argument `--read-only` or `-r` which will enable/disable read-only mode for the external script. By default `read-only` option will be `True` which means it will only generate `get` output, will not able to create something unless `--read-only` if `False`. If `read-only` is `true` and user is trying `write/create` operation it will raise ``` raise ExecutionFailureException( "Read-only mode is enabled. Pass '--read-only' or '-r' as False") ``` Signed-off-by: subhamkrai <srai@redhat.com>
- Loading branch information
1 parent
2d03a8e
commit c74f0f6
Showing
1 changed file
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters