Skip to content

Commit

Permalink
chore: Correctly log version string and remove unnecessary error check (
Browse files Browse the repository at this point in the history
#5664)

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored Apr 13, 2021
1 parent 54f4c26 commit ded95bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/argoexec/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func NewRootCommand() *cobra.Command {
func initExecutor() *executor.WorkflowExecutor {
version := argo.GetVersion()
executorType := os.Getenv(common.EnvVarContainerRuntimeExecutor)
log.WithFields(log.Fields{"version": version, "executorType": executorType}).Info("Starting Workflow Executor")
log.WithFields(log.Fields{"version": version.Version, "executorType": executorType}).Info("Starting Workflow Executor")
config, err := clientConfig.ClientConfig()
checkErr(err)
config = restclient.AddUserAgent(config, fmt.Sprintf("argo-workflows/%s argo-executor/%s", version.Version, executorType))
Expand All @@ -91,7 +91,6 @@ func initExecutor() *executor.WorkflowExecutor {
checkErr(err)

restClient := clientset.RESTClient()
checkErr(err)

podName, ok := os.LookupEnv(common.EnvVarPodName)
if !ok {
Expand Down

0 comments on commit ded95bc

Please sign in to comment.