Skip to content

Commit e8c1b55

Browse files
VR: fix public-key is missing in VR after acquiring public IP (#7103)
1 parent abef381 commit e8c1b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/apache/cloudstack/network/topology/BasicNetworkVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public boolean visit(final UserdataToRouterRules userdata) throws ResourceUnavai
254254
final NicVO nicVo = userdata.getNicVo();
255255

256256
final Commands commands = new Commands(Command.OnError.Stop);
257-
_commandSetupHelper.createVmDataCommand(router, userVM, nicVo, null, commands);
257+
_commandSetupHelper.createVmDataCommand(router, userVM, nicVo, userVM.getDetail("SSH.PublicKey"), commands);
258258

259259
return _networkGeneralHelper.sendCommandsToRouter(router, commands);
260260
}

0 commit comments

Comments
 (0)