Add get_transport_url function patching

Change-Id: I40c7adf7ed8485119820ac53744053ec94511193
This commit is contained in:
dukhlov 2016-02-02 05:30:18 -05:00 committed by Dmitriy Ukhlov
parent 1e643aaad7
commit 13507d9e96
2 changed files with 10 additions and 2 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/devstack-plugin-pika.git

View File

@ -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)
}