]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: add fetch_tcp_ports function for getting processed ports
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 26 May 2023 19:06:40 +0000 (15:06 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commit3a8b1af46ccac6ab7f6fbd64a336443afec0282d
treefb220d0a95e9896d586901a99de9426fbd2dd8b8
parentdfe9b48674f75ee0811c2aef8f8fd1c800a7b982
cephadm: add fetch_tcp_ports function for getting processed ports

The cephadm cli can pass ports as either a string containing space
separated port numbers or, in the newer method, a (JSON) list of ints.
The fetch_tcp_ports function abstracts away the handling of
these input forms.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py