Skip to content

Commit

Permalink
switch executeable path to isexecutable in telemetrics
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraAhlgrimm authored and edburns committed Aug 2, 2023
1 parent 8032665 commit 4489749
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public abstract class AbstractFunctionMojo extends AbstractAppServiceMojo {
private static final String FUNCTION_PRICING_KEY = "pricingTier";
private static final String FUNCTION_DEPLOY_TO_SLOT_KEY = "isDeployToFunctionSlot";
private static final String FUNCTION_NATIVE_EXECUTABLE_PATH = "nativeExecutablePath";
private static final String FUNCTION_IS_NATIVE = "isNativeFunction";

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

protected boolean isNativeExecutable() {
return !StringUtils.isEmpty(getNativeExecutablePath());
return StringUtils.isNotEmpty(getNativeExecutablePath());
}

protected File getHostJsonFile() {
Expand Down Expand Up @@ -378,7 +379,7 @@ public Map<String, String> getTelemetryProperties() {
result.put(DISABLE_APP_INSIGHTS_KEY, String.valueOf(isDisableAppInsights()));
final boolean isDeployToFunctionSlot = getDeploymentSlotSetting() != null && StringUtils.isNotEmpty(getDeploymentSlotSetting().getName());
result.put(FUNCTION_DEPLOY_TO_SLOT_KEY, String.valueOf(isDeployToFunctionSlot));
result.put(FUNCTION_NATIVE_EXECUTABLE_PATH, nativeExecutablePath);
result.put(FUNCTION_IS_NATIVE, String.valueOf(isNativeExecutable()));
return result;
}
//endregion
Expand Down

0 comments on commit 4489749

Please sign in to comment.