Skip to content

Commit dcf1c11

Browse files
committed
1 parent 9017df8 commit dcf1c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/src/main/groovy/io/micronaut/cli/profile/commands/CreateFunctionCommand.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class CreateFunctionCommand extends AbstractCreateCommand {
7474
final CreateServiceCommandObject cmd = new CreateServiceCommandObject(
7575
appName: this.functionName,
7676
baseDir: executionContext.baseDir,
77-
profileName: this.profile ?: getDefaultProfile(),
77+
profileName: functionProfile,
7878
micronautVersion: VersionInfo.getVersion(MicronautCli),
7979
features: selectedFeatures,
8080
inplace: this.inplace,
@@ -90,7 +90,7 @@ class CreateFunctionCommand extends AbstractCreateCommand {
9090
}
9191

9292
protected String evaluateLangFeature(String profile) {
93-
"${profile}-${lang}"
93+
"${profile}-${lang.name()}"
9494
}
9595

9696
protected String evaluateTestFeature() {

0 commit comments

Comments
 (0)