From 589e337e283c143cff1a49f48063255564954d17 Mon Sep 17 00:00:00 2001 From: ananaysingh <54039499+ananaysingh@users.noreply.github.com> Date: Thu, 15 Sep 2022 23:07:02 +0530 Subject: [PATCH] Updated kill.go (#42) in killTask function, null check removed for instances, as it is a mandatory parameter in the killTask command. Also made changes to improve language consistency --- cmd/kill.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/kill.go b/cmd/kill.go index 06ed419..98e4401 100644 --- a/cmd/kill.go +++ b/cmd/kill.go @@ -48,7 +48,7 @@ func init() { killTasksCmd.MarkFlagRequired("environment") killTasksCmd.MarkFlagRequired("role") killTasksCmd.MarkFlagRequired("name") - killTasksCmd.MarkFlagRequired("instance") + killTasksCmd.MarkFlagRequired("instances") } var killCmd = &cobra.Command{ @@ -107,11 +107,6 @@ func killTasks(cmd *cobra.Command, args []string) { Role(*role). Name(*name) - //Check that instance number is passed - if instances == nil { - log.Fatalln("Instance number not found. Please pass a valid instance number. If you want to pass multiple instances, please pass them as comma separated integer values") - } - /* * In the following block, we convert instance numbers, which were passed as strings, to integer values * After converting them to integers, we add them to a slice of type int32.