Repository navigation
Commit 708ba29
committed
utils: test the escaped colons of an IPv6 Ceph monitor without a port
composeOptionForMonHosts escapes every ':' of a monitor, because the colons
separate the options of the rbd: string. That includes the colons of an IPv6
address, also when the pool has no port to add. Test that case, and make
addPortToRbdMonitor, which is only used by RbdUtils itself, protected.1 parent 1f3f501 commit 708ba29
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
| |||
0 commit comments