Skip to content

Commit

Permalink
[Platform] Move comment to make it less misleading
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jvigil-yugabyte committed May 26, 2021
1 parent 46884b3 commit 2efc5aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2efc5aa

Please sign in to comment.