mirror of https://github.com/apache/cloudstack.git
kvm: Fix double-escape issue while creating rbd disk options (#4568)
This fixes issue introduced in c3554ec31d
which enable block of code that will double escape rados host/monitor
port.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
d4580f3e50
commit
c82688a355
|
|
@ -29,7 +29,7 @@ public class KVMPhysicalDisk {
|
|||
rbdOpts = "rbd:" + image;
|
||||
rbdOpts += ":mon_host=" + monHost;
|
||||
if (monPort > 0) {
|
||||
rbdOpts += "\\\\:" + monPort;
|
||||
rbdOpts += "\\:" + monPort;
|
||||
}
|
||||
|
||||
if (authUserName == null) {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public class KVMPhysicalDiskTest extends TestCase {
|
|||
|
||||
public void testRBDStringBuilder() {
|
||||
assertEquals(KVMPhysicalDisk.RBDStringBuilder("ceph-monitor", 8000, "admin", "supersecret", "volume1"),
|
||||
"rbd:volume1:mon_host=ceph-monitor\\\\:8000:auth_supported=cephx:id=admin:key=supersecret:rbd_default_format=2:client_mount_timeout=30");
|
||||
"rbd:volume1:mon_host=ceph-monitor\\:8000:auth_supported=cephx:id=admin:key=supersecret:rbd_default_format=2:client_mount_timeout=30");
|
||||
}
|
||||
|
||||
public void testAttributes() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue