From 093806fca965c06d0589e1fda51a55e2f82a1267 Mon Sep 17 00:00:00 2001 From: Aravinda VK Date: Fri, 18 May 2018 15:10:46 +0530 Subject: [PATCH] bitrot: set advanced flag to bitrot volume options Fixes: #767 and #766 Signed-off-by: Aravinda VK --- glustercli/cmd/bitrot.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/glustercli/cmd/bitrot.go b/glustercli/cmd/bitrot.go index 898d43911..5dbf1ac05 100644 --- a/glustercli/cmd/bitrot.go +++ b/glustercli/cmd/bitrot.go @@ -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 { @@ -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 { @@ -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 {