Merge "If plugin is enabled multiple times fail"
This commit is contained in:
commit
9a69a1abfc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user