Fix "dagger new --name"

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes 2021-03-31 22:04:15 +00:00
parent f3182aa12f
commit 47b16a1d1b

View File

@ -65,7 +65,7 @@ var newCmd = &cobra.Command{
func getNewDeploymentName(ctx context.Context) string {
lg := log.Ctx(ctx)
deploymentName := viper.GetString("deployment")
deploymentName := viper.GetString("name")
if deploymentName != "" {
return deploymentName
}