Skip to content

Commit

Permalink
add zookeeper ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaipao committed Jul 18, 2013
1 parent 659913d commit a5d36f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ node_modules/*
lib/doc/
lib-cov/
coverage.html
.DS_Store
.idea/*
2 changes: 1 addition & 1 deletion lib/master/zookeeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function Zookeeper(app, opts) {

var self = this;
this.client.once('connected', function () {
self.client.addAuthInfo('digest', new Buffer(self.authentication));
if (self.setACL) {
self.client.addAuthInfo('digest', new Buffer(self.authentication));
self.client.setACL(self.path, self.acls, -1, function (error, stat) {
if (error) {
console.log('Failed to set ACL: %s.', error);
Expand Down

0 comments on commit a5d36f1

Please sign in to comment.