Skip to content

Commit

Permalink
fix(cloud): redirect to correct Computer page when provisioning Node …
Browse files Browse the repository at this point in the history
…manually
  • Loading branch information
hainenber committed Dec 21, 2024
1 parent 7e182d7 commit fe9bd01
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ public HttpResponse doProvision(@QueryParameter String template) {
SC_INTERNAL_SERVER_ERROR,
"multipass-cloud-plugin cannot provision on-demand agent as requested");
}
var manuallyProvisionedAgentName = manuallyProvisionedAgent.get().displayName;
var manuallyProvisionedAgentName =
manuallyProvisionedAgent.get().future.get().getNodeName();
return HttpResponses.redirectViaContextPath(String.format("/computer/%s", manuallyProvisionedAgentName));
} catch (Exception e) {
throw HttpResponses.error(SC_INTERNAL_SERVER_ERROR, e);
Expand Down

0 comments on commit fe9bd01

Please sign in to comment.