Add get_transport_url function patching
Change-Id: I40c7adf7ed8485119820ac53744053ec94511193
This commit is contained in:
parent
1e643aaad7
commit
13507d9e96
|
@ -0,0 +1,4 @@
|
|||
[gerrit]
|
||||
host=review.openstack.org
|
||||
port=29418
|
||||
project=openstack/devstack-plugin-pika.git
|
|
@ -14,10 +14,14 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
function get_transport_url {
|
||||
echo "pika://$RABBIT_USERID:$RABBIT_PASSWORD@$RABBIT_HOST:5672"
|
||||
}
|
||||
|
||||
function iniset_rpc_backend {
|
||||
local package=$1
|
||||
local file=$2
|
||||
local section=${3:-DEFAULT}
|
||||
|
||||
iniset $file $section transport_url "pika://$RABBIT_USERID:$RABBIT_PASSWORD@$RABBIT_HOST:5672"
|
||||
}
|
||||
iniset $file $section transport_url $(get_transport_url)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue