You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened: The comma-separated inputs are usually validated using a similar paradigm across all experiments:
instanceNamesList:=strings.Split(experimentsDetails.VMInstanceName, ",")
iflen(instanceNamesList) ==0 {
returnerrors.Errorf("no instance name found to stop")
}
However, if the input string is an empty string then still the length of the resultant slice will be 1. Hence this check maybe simply updated with the following in all places:
ifexperimentsDetails.VMInstanceName=="" {
returnerrors.Errorf("no instance name found to stop")
}
The text was updated successfully, but these errors were encountered:
What happened: The comma-separated inputs are usually validated using a similar paradigm across all experiments:
However, if the input string is an empty string then still the length of the resultant slice will be 1. Hence this check maybe simply updated with the following in all places:
The text was updated successfully, but these errors were encountered: