Skip to content

Commit 3d95343

Browse files
SandraAhlgrimmedburns
authored andcommitted
switch executeable path to isexecutable in telemetrics
1 parent ba5ca8c commit 3d95343

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

azure-functions-maven-plugin/src/main/java/com/microsoft/azure/maven/function/AbstractFunctionMojo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public abstract class AbstractFunctionMojo extends AbstractAppServiceMojo {
6262
private static final String FUNCTION_PRICING_KEY = "pricingTier";
6363
private static final String FUNCTION_DEPLOY_TO_SLOT_KEY = "isDeployToFunctionSlot";
6464
private static final String FUNCTION_NATIVE_EXECUTABLE_PATH = "nativeExecutablePath";
65+
private static final String FUNCTION_IS_NATIVE = "isNativeFunction";
6566

6667
//region Properties
6768
@Parameter(defaultValue = "${project.build.finalName}", readonly = true, required = true)
@@ -291,7 +292,7 @@ protected File getArtifact() throws AzureToolkitRuntimeException {
291292
}
292293

293294
protected boolean isNativeExecutable() {
294-
return !StringUtils.isEmpty(getNativeExecutablePath());
295+
return StringUtils.isNotEmpty(getNativeExecutablePath());
295296
}
296297

297298
protected File getHostJsonFile() {
@@ -378,7 +379,7 @@ public Map<String, String> getTelemetryProperties() {
378379
result.put(DISABLE_APP_INSIGHTS_KEY, String.valueOf(isDisableAppInsights()));
379380
final boolean isDeployToFunctionSlot = getDeploymentSlotSetting() != null && StringUtils.isNotEmpty(getDeploymentSlotSetting().getName());
380381
result.put(FUNCTION_DEPLOY_TO_SLOT_KEY, String.valueOf(isDeployToFunctionSlot));
381-
result.put(FUNCTION_NATIVE_EXECUTABLE_PATH, nativeExecutablePath);
382+
result.put(FUNCTION_IS_NATIVE, String.valueOf(isNativeExecutable()));
382383
return result;
383384
}
384385
//endregion

0 commit comments

Comments
 (0)