Merge pull request #2 from davidsulpy/master

Added a check to prevent an empty string root url from being accepted
This commit is contained in:
David Sulpy
2015-08-10 11:52:36 -07:00

View File

@@ -215,7 +215,7 @@ def setAccessKey() {
def newAccessKey = request.JSON?.accessKey def newAccessKey = request.JSON?.accessKey
def newGrokerRootUrl = request.JSON?.grokerRootUrl def newGrokerRootUrl = request.JSON?.grokerRootUrl
if (newGrokerRootUrl && newGrokerRootUrl != state.grokerRootUrl) { if (newGrokerRootUrl && newGrokerRootUrl != "" && newGrokerRootUrl != state.grokerRootUrl) {
state.grokerRootUrl = "$newGrokerRootUrl" state.grokerRootUrl = "$newGrokerRootUrl"
state.isBucketCreated = false state.isBucketCreated = false
} }