From 8947375a9a30dea09933225c56bae98356eb0b9a Mon Sep 17 00:00:00 2001 From: Joseph Cosentino Date: Thu, 22 Aug 2024 11:22:02 -0700 Subject: [PATCH] chore: checkstyle --- .../main/java/com/aws/greengrass/cli/CLIEventStreamAgent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/com/aws/greengrass/cli/CLIEventStreamAgent.java b/server/src/main/java/com/aws/greengrass/cli/CLIEventStreamAgent.java index 9f2b8c2..d2c472a 100644 --- a/server/src/main/java/com/aws/greengrass/cli/CLIEventStreamAgent.java +++ b/server/src/main/java/com/aws/greengrass/cli/CLIEventStreamAgent.java @@ -463,7 +463,6 @@ public CreateLocalDeploymentResponse handleRequest(CreateLocalDeploymentRequest .resource(AuthorizationHandler.ANY_REGEX) .operation(CREATE_LOCAL_DEPLOYMENT) .build()); - String deploymentId = UUID.randomUUID().toString(); //All inputs are valid. If all inputs are empty, then user might just want to retrigger the deployment // with new recipes set using the updateRecipesAndArtifacts API. Map configUpdate = null; @@ -493,6 +492,7 @@ public CreateLocalDeploymentResponse handleRequest(CreateLocalDeploymentRequest throw new InvalidArgumentsError("Thing group name cannot contain colon characters"); } + String deploymentId = UUID.randomUUID().toString(); LocalOverrideRequest localOverrideRequest = LocalOverrideRequest.builder().requestId(deploymentId) .componentsToMerge(request.getRootComponentVersionsToAdd()) .componentsToRemove(request.getRootComponentsToRemove())