Skip to content
Browse files

Don't retrieve vbucketservermap for memcached bucket

  • Loading branch information...
1 parent e7f7d7c commit d7d27afba1438e800afeea8c08450fc5e7a934a3 @bcui6611 bcui6611 committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 collector.py
View
6 collector.py
@@ -138,8 +138,10 @@ def get_bucketlist(self, server, port, user, password, bucketname, opts):
if bucket.has_key('vBucketServerMap'):
bucketinfo['vBucketServerMap'] = bucket['vBucketServerMap']
else:
- self.log.error("vBucketServerMap doesn't exist from bucket info")
- self.log.error(util.pretty_print(info))
+ if bucket['bucketType'] != "memcached":
+ self.log.error("vBucketServerMap doesn't exist from bucket info")
+ self.log.error(bucket)
+
bucketStats = bucket['basicStats']
bucketinfo['bucketStats'] = {}
for key in bucketStats.iterkeys():

0 comments on commit d7d27af

Please sign in to comment.
Something went wrong with that request. Please try again.