Skip to content

Commit

Permalink
Merge pull request #144 from thaJeztah/allow-some-flags-during-rollback
Browse files Browse the repository at this point in the history
Allow --detach and --quiet flags when using --rollback
  • Loading branch information
dnephin authored Jun 1, 2017
2 parents bf22fc6 + f10f29d commit 30af879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/service/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func runUpdate(dockerCli *command.DockerCli, flags *pflag.FlagSet, options *serv
// Rollback can't be combined with other flags.
otherFlagsPassed := false
flags.VisitAll(func(f *pflag.Flag) {
if f.Name == "rollback" {
if f.Name == "rollback" || f.Name == "detach" || f.Name == "quiet" {
return
}
if flags.Changed(f.Name) {
Expand Down

0 comments on commit 30af879

Please sign in to comment.