From 2efc5aa5eb6598e3abaca013bb5b95667b16daaf Mon Sep 17 00:00:00 2001 From: Jason Vigil Date: Wed, 26 May 2021 10:43:47 -0600 Subject: [PATCH] [Platform] Move comment to make it less misleading Summary: Seems like some additional code was added to the for loop since this comment was originally created. Move the comment closer to the line of code that it's associated with since the for loop now does more stuff. Test Plan: Trivial, read surrounding code Reviewers: wesley Reviewed By: wesley Subscribers: jenkins-bot, yugaware Differential Revision: https://phabricator.dev.yugabyte.com/D11730 --- .../java/com/yugabyte/yw/controllers/UniverseController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managed/src/main/java/com/yugabyte/yw/controllers/UniverseController.java b/managed/src/main/java/com/yugabyte/yw/controllers/UniverseController.java index b86bdf237bc0..6df99d991d32 100644 --- a/managed/src/main/java/com/yugabyte/yw/controllers/UniverseController.java +++ b/managed/src/main/java/com/yugabyte/yw/controllers/UniverseController.java @@ -333,9 +333,9 @@ public Result create(UUID customerUUID) { throw new YWServiceException(BAD_REQUEST, Util.UNIV_NAME_ERROR_MESG); } - // Set the provider code. for (Cluster c : taskParams.clusters) { Provider provider = Provider.getOrBadRequest(UUID.fromString(c.userIntent.provider)); + // Set the provider code. c.userIntent.providerType = CloudType.valueOf(provider.code); // Check if for a new create, no value is set, we explicitly set it to UNEXPOSED. if (c.userIntent.enableExposingService == ExposingServiceState.NONE) {