]> git.proxmox.com Git - pve-manager-legacy.git/commit
ui: utils: monitor_ceph_installed: avoid setting nodename to localhost
authorAaron Lauterer <a.lauterer@proxmox.com>
Thu, 20 Apr 2023 12:31:41 +0000 (14:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 22 Apr 2023 07:50:42 +0000 (09:50 +0200)
commite398a66d955a69f5847113b0cb5819094db40f26
tree71eb380cd089e3f25e778584b8591e0cfb78da48
parent38b07c13bd28d65390ae7f85958b5f9f4a94855f
ui: utils: monitor_ceph_installed: avoid setting nodename to localhost

If a user is accessing the Ceph panel via Datacenter -> Ceph, then the
install & config wizard might be shown. The nodename that is passed to
the wizard  will decide the ID of the initial MON and MGR services.

Therefore, don't fall back to 'localhost' but the actual name of the
node to which we are connected to. The result will be that the first MON
and MGR will have the expected ID instead of 'localhost'.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
www/manager6/Utils.js