From da2abaaa066510f8f86da6e3d7840044badc8d73 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 26 Jun 2014 06:50:56 +0100 Subject: [PATCH] Fix formatting of TransportURL.parse() docs Change-Id: I0b2cf7b1e76bd9151957ddaaaaca8d9e11cf1ed5 --- oslo/messaging/transport.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/oslo/messaging/transport.py b/oslo/messaging/transport.py index 5c8826c2c..f33bdc8d0 100644 --- a/oslo/messaging/transport.py +++ b/oslo/messaging/transport.py @@ -331,7 +331,7 @@ class TransportURL(object): def parse(cls, conf, url, aliases=None): """Parse an url. - Assuming a URL takes the form of: + Assuming a URL takes the form of:: transport://user:pass@host1:port[,hostN:portN]/virtual_host @@ -341,25 +341,25 @@ class TransportURL(object): * It is first split by ',' in order to support multiple hosts * The last parsed username and password will be propagated to the rest - of hosts specified: + of hosts specified:: - user:passwd@host1:port1,host2:port2 + user:pass@host1:port1,host2:port2 - [ - {"username": "user", "password": "passwd", "host": "host1:port1"}, - {"username": "user", "password": "passwd", "host": "host2:port2"} - ] + [ + {"username": "user", "password": "pass", "host": "host1:port1"}, + {"username": "user", "password": "pass", "host": "host2:port2"} + ] * In order to avoid the above propagation, it is possible to alter the order in which the hosts are specified or specify a set of fake - credentials using ",:@host2:port2" + credentials using ",:@host2:port2":: - user:passwd@host1:port1,:@host2:port2 + user:pass@host1:port1,:@host2:port2 - [ - {"username": "user", "password": "passwd", "host": "host1:port1"}, - {"username": "", "password": "", "host": "host2:port2"} - ] + [ + {"username": "user", "password": "pass", "host": "host1:port1"}, + {"username": "", "password": "", "host": "host2:port2"} + ] :param conf: a ConfigOpts instance :type conf: oslo.config.cfg.ConfigOpts