Use GetDryRunFlag to keep consistent

This commit is contained in:
Zhenguo Niu
2017-12-18 19:28:55 +08:00
parent 035ff73f7b
commit 86cc625a55
10 changed files with 10 additions and 10 deletions

View File

@@ -217,7 +217,7 @@ func (o *DrainOptions) SetupDrain(cmd *cobra.Command, args []string) error {
return cmdutil.UsageErrorf(cmd, fmt.Sprintf("USAGE: %s [flags]", cmd.Use))
}
o.DryRun = cmdutil.GetFlagBool(cmd, "dry-run")
o.DryRun = cmdutil.GetDryRunFlag(cmd)
if o.client, err = o.Factory.KubernetesClientSet(); err != nil {
return err