Navigation Menu

Skip to content

Commit

Permalink
MB-15415: Wont sumbit if no form parameters provided
Browse files Browse the repository at this point in the history
Change-Id: Ic2dde08c47017a51641dac5a234a8f22a05049e6
Reviewed-on: http://review.couchbase.org/52440
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>
  • Loading branch information
Bin Cui authored and bcui6611 committed Jun 26, 2015
1 parent 80b8a14 commit 89004e1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions node.py
Expand Up @@ -353,7 +353,7 @@ def clusterInit(self, cmd):

opts = {
"error_msg": "unable to init/modify %s" % self.server,
"success_msg": "init %s" % self.server
"success_msg": "init/edit %s" % self.server
}

output_result = rest.restCmd(self.method,
Expand Down Expand Up @@ -382,11 +382,12 @@ def clusterInit(self, cmd):
rest.setParam('memoryQuota', self.per_node_quota)
if self.cluster_index_ramsize:
rest.setParam('indexMemoryQuota', self.cluster_index_ramsize)
output_result = rest.restCmd(self.method,
'/pools/default',
self.user,
self.password,
opts)
if rest.params:
output_result = rest.restCmd(self.method,
'/pools/default',
self.user,
self.password,
opts)
print output_result

def process_services(self, data_required):
Expand Down

0 comments on commit 89004e1

Please sign in to comment.