Skip to content

Commit f69da3b

Browse files
authored
Merge pull request #574 from praveingk/main
Fix gwctl
2 parents 310675b + f8d7ca6 commit f69da3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/gwctl/subcommand/policy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func PolicyCreateCmd() *cobra.Command {
4545
},
4646
}
4747
o.addFlags(cmd.Flags())
48-
cmdutil.MarkFlagsRequired(cmd, []string{"type"})
48+
cmdutil.MarkFlagsRequired(cmd, []string{"policyFile"})
4949

5050
return cmd
5151
}
@@ -62,7 +62,7 @@ func PolicyUpdateCmd() *cobra.Command {
6262
},
6363
}
6464
o.addFlags(cmd.Flags())
65-
cmdutil.MarkFlagsRequired(cmd, []string{"type"})
65+
cmdutil.MarkFlagsRequired(cmd, []string{"policyFile"})
6666

6767
return cmd
6868
}
@@ -130,7 +130,7 @@ func PolicyDeleteCmd() *cobra.Command {
130130
},
131131
}
132132
o.addFlags(cmd.Flags())
133-
cmdutil.MarkFlagsRequired(cmd, []string{"type"})
133+
cmdutil.MarkFlagsRequired(cmd, []string{"policyFile"})
134134

135135
return cmd
136136
}

0 commit comments

Comments
 (0)