]> git.proxmox.com Git - pve-manager.git/commit
ceph: mon destroy: remove from mon_host
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 19 Jun 2019 11:45:53 +0000 (13:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Jun 2019 13:26:33 +0000 (15:26 +0200)
commitea2ecb0c2f79586a7816ed313b00f26f9f2c0425
tree0e9a45b0c142b3c0e3c780139cd8e674833f1dd6
parent9bc15eea0aede46ab602ce1910eacb3a954e0e90
ceph: mon destroy: remove from mon_host

we need to remove an ip, ip:port or a ipvector from monhost
so use multiple regex search and replaces for this

this looks not really nice, but due to the strange format
of the line (e.g. ',' is a seperator inside and outside of a vector,
also ipv6 adresses may be surrounded with [] but so are vectors),
i found no better way

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Ceph/MON.pm