Skip to content

Commit

Permalink
bugfix: fix interface casting error
Browse files Browse the repository at this point in the history
not all type can be casting to string

Fixes: AliyunContainerService#1083

Signed-off-by: Ace-Tang <[email protected]>
  • Loading branch information
Ace-Tang committed Apr 10, 2018
1 parent 8d90aba commit 2977485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func getConflictConfigurations(flagSet *pflag.FlagSet, fileFlags map[string]inte
var conflictFlags []string
flagSet.Visit(func(f *pflag.Flag) {
if v, exist := fileFlags[f.Name]; exist {
conflictFlags = append(conflictFlags, fmt.Sprintf("from flag: %s and from config file: %s", f.Value.String(), v.(string)))
conflictFlags = append(conflictFlags, fmt.Sprintf("from flag: %s and from config file: %s", f.Value.String(), v))
}
})

Expand Down

0 comments on commit 2977485

Please sign in to comment.