Skip to content

Commit

Permalink
Handle case with dashes in project name
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingregory committed Apr 17, 2019
1 parent 75fd38f commit aa0f718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/docker.go
Expand Up @@ -177,7 +177,8 @@ func createProject(projectName, airflowHome string, envFile string) (project.API
func Start(airflowHome string, envFile string) error {
// Get project name from config
projectName, err := projectNameUnique()
strippedProjectName := strings.Replace(projectName, "_", "", -1)
replacer := strings.NewReplacer("_", "", "-", "")
strippedProjectName := replacer.Replace(projectName)

if err != nil {
return errors.Wrap(err, "error retrieving working directory")
Expand Down

0 comments on commit aa0f718

Please sign in to comment.