Merge "If plugin is enabled multiple times fail"

This commit is contained in:
Jenkins 2016-11-29 23:45:09 +00:00 committed by Gerrit Code Review
commit 9a69a1abfc

View File

@ -1771,6 +1771,9 @@ function enable_plugin {
local name=$1
local url=$2
local branch=${3:-master}
if [[ ",${DEVSTACK_PLUGINS}," =~ ,${name}, ]]; then
die $LINENO "Plugin attempted to be enabled twice: ${name} ${url} ${branch}"
fi
DEVSTACK_PLUGINS+=",$name"
GITREPO[$name]=$url
GITDIR[$name]=$DEST/$name