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

Commit

Permalink
Merge pull request #770 from aravindavk/bitrot_fixes
Browse files Browse the repository at this point in the history
bitrot: set advanced flag to bitrot volume options
  • Loading branch information
aravindavk authored May 18, 2018
2 parents bb32f32 + 093806f commit b528b9d
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 b528b9d

Please sign in to comment.