Commit a3f39db
server: Remove meaningless password regeneration on resetSSHKeyForVirtualMachine (#4819)
On API `resetSSHKeyForVirtualMachine`, ACS also regenerates VM password when it uses a template with `Password Enabled` as true; there is already anAPI to reset VM password, therefore, the reset SSH keys API should not reset the VM SSH password as well.
Besides running a meaningless process, the VM's password regeneration slows down the main process and may cause a confusion in operations due to password change in the VM without being explicity requested.
Co-authored-by: Daniel Augusto Veronezi Salvador <daniel@scclouds.com.br>1 parent d2ab350 commit a3f39db
File tree
3 files changed
+36
-29
lines changed- server/src
- main/java/com/cloud
- server
- vm
- test/java/com/cloud/vm
3 files changed
+36
-29
lines changedLines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4233 | 4233 | | |
4234 | 4234 | | |
4235 | 4235 | | |
4236 | | - | |
4237 | | - | |
| 4236 | + | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
4238 | 4240 | | |
4239 | | - | |
4240 | 4241 | | |
4241 | | - | |
4242 | | - | |
4243 | | - | |
| 4242 | + | |
4244 | 4243 | | |
4245 | 4244 | | |
4246 | | - | |
4247 | 4245 | | |
4248 | 4246 | | |
4249 | 4247 | | |
4250 | | - | |
4251 | | - | |
4252 | | - | |
4253 | | - | |
4254 | | - | |
4255 | | - | |
| 4248 | + | |
| 4249 | + | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
4256 | 4253 | | |
4257 | 4254 | | |
4258 | 4255 | | |
| |||
Lines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
| 865 | + | |
866 | 866 | | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | 867 | | |
871 | | - | |
| 868 | + | |
872 | 869 | | |
873 | 870 | | |
874 | 871 | | |
875 | 872 | | |
876 | | - | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
877 | 876 | | |
878 | 877 | | |
879 | 878 | | |
880 | | - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
881 | 887 | | |
882 | 888 | | |
883 | 889 | | |
| |||
894 | 900 | | |
895 | 901 | | |
896 | 902 | | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | 903 | | |
902 | 904 | | |
903 | 905 | | |
| |||
912 | 914 | | |
913 | 915 | | |
914 | 916 | | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | 917 | | |
921 | 918 | | |
922 | 919 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
561 | 574 | | |
0 commit comments