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 { func getNewDeploymentName(ctx context.Context) string {
lg := log.Ctx(ctx) lg := log.Ctx(ctx)
deploymentName := viper.GetString("deployment") deploymentName := viper.GetString("name")
if deploymentName != "" { if deploymentName != "" {
return deploymentName return deploymentName
} }