Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
bitrot: set advanced flag to bitrot volume options
Browse files Browse the repository at this point in the history
Fixes: #767 and #766
Signed-off-by: Aravinda VK <avishwan@redhat.com>
  • Loading branch information
aravindavk committed May 18, 2018
1 parent bb32f32 commit 093806f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions glustercli/cmd/bitrot.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ var bitrotScrubThrottleCmd = &cobra.Command{
option = append(option, "bit-rot.scrub-throttle")
option = append(option, args[1])

// Set Option set flag to advanced
flagSetAdv = true
err := volumeOptionJSONHandler(cmd, volname, option)
if err != nil {
if verbose {
Expand All @@ -125,6 +127,8 @@ var bitrotScrubFrequencyCmd = &cobra.Command{
option = append(option, "bit-rot.scrub-freq")
option = append(option, args[1])

// Set Option set flag to advanced
flagSetAdv = true
err := volumeOptionJSONHandler(cmd, volname, option)
if err != nil {
if verbose {
Expand Down Expand Up @@ -152,6 +156,9 @@ var bitrotScrubCmd = &cobra.Command{
case scrubPause, scrubResume:
option = append(option, "bit-rot.scrub-state")
option = append(option, args[1])

// Set Option set flag to advanced
flagSetAdv = true
err := volumeOptionJSONHandler(cmd, volname, option)
if err != nil {
if verbose {
Expand Down

0 comments on commit 093806f

Please sign in to comment.