Skip to content

Commit

Permalink
bugfix: specifying confusing instance names
Browse files Browse the repository at this point in the history
Closes #763
  • Loading branch information
GRISHNOV committed Apr 19, 2023
1 parent 80f0f63 commit 7f346c4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions cli/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,16 +382,6 @@ func GetInstancesFromArgs(args []string, projectName string) ([]string, error) {
var instances []string

for _, instanceName := range args {
if instanceName == projectName {
return nil, fmt.Errorf(appNameSpecifiedError)
}

parts := strings.SplitN(instanceName, ".", 2)

if len(parts) > 1 {
return nil, fmt.Errorf(instanceIDSpecified)
}

if instanceName == "stateboard" {
return nil, fmt.Errorf("Please, specify flag --stateboard for processing stateboard instance")
}
Expand Down Expand Up @@ -579,10 +569,3 @@ func ParseDependencies(rawDeps []string) (PackDependencies, error) {
func ContainsUpperSymbols(src string) bool {
return strings.ToLower(src) != src
}

const (
appNameSpecifiedError = "Application name is specified. " +
"Please, specify instance name(s)"
instanceIDSpecified = `[APP_NAME].INSTANCE_NAME is specified. ` +
"Please, specify instance name(s)"
)

0 comments on commit 7f346c4

Please sign in to comment.