From 16ca440e5e8f7c71b2afc94e8c814eb9987fc52f Mon Sep 17 00:00:00 2001 From: Pravein-Govindan-Kannan Date: Fri, 10 May 2024 15:58:00 -0700 Subject: [PATCH] Fix addFlags Signed-off-by: Pravein-Govindan-Kannan --- cmd/gwctl/subcommand/policy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gwctl/subcommand/policy.go b/cmd/gwctl/subcommand/policy.go index 71c9a0c1..96b6bd66 100644 --- a/cmd/gwctl/subcommand/policy.go +++ b/cmd/gwctl/subcommand/policy.go @@ -45,7 +45,7 @@ func PolicyCreateCmd() *cobra.Command { }, } o.addFlags(cmd.Flags()) - cmdutil.MarkFlagsRequired(cmd, []string{"type"}) + cmdutil.MarkFlagsRequired(cmd, []string{"policyFile"}) return cmd } @@ -62,7 +62,7 @@ func PolicyUpdateCmd() *cobra.Command { }, } o.addFlags(cmd.Flags()) - cmdutil.MarkFlagsRequired(cmd, []string{"type"}) + cmdutil.MarkFlagsRequired(cmd, []string{"policyFile"}) return cmd } @@ -130,7 +130,7 @@ func PolicyDeleteCmd() *cobra.Command { }, } o.addFlags(cmd.Flags()) - cmdutil.MarkFlagsRequired(cmd, []string{"type"}) + cmdutil.MarkFlagsRequired(cmd, []string{"policyFile"}) return cmd }