Skip to content

Commit

Permalink
Remove step version in userAgent for now
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Rögner <[email protected]>
  • Loading branch information
roegi committed Feb 5, 2025
1 parent 775c8b2 commit 4bff271
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import static com.here.xyz.jobs.util.AwsClients.cloudwatchEventsClient;
import static com.here.xyz.jobs.util.AwsClients.sfnClient;
import static com.here.xyz.util.service.BaseHttpServerVerticle.HeaderValues.STREAM_ID;
import static com.here.xyz.util.service.Core.buildVersion;
import static software.amazon.awssdk.services.cloudwatchevents.model.RuleState.ENABLED;

import com.amazonaws.services.lambda.runtime.Context;
Expand Down Expand Up @@ -568,7 +567,7 @@ public void handleRequest(InputStream inputStream, OutputStream outputStream, Co
throw new NullPointerException("Malformed step request, missing step definition.");

//Set the userAgent of the web clients correctly
HubWebClient.userAgent = JobWebClient.userAgent = "XYZ-JobStep-" + request.getStep().getClass().getSimpleName() + "/" + buildVersion();
HubWebClient.userAgent = JobWebClient.userAgent = "XYZ-JobStep-" + request.getStep().getClass().getSimpleName();

//Set the own lambda ARN accordingly
if (context instanceof SimulatedContext) {
Expand Down

0 comments on commit 4bff271

Please sign in to comment.