Skip to content

Commit

Permalink
Fix image.chmod()
Browse files Browse the repository at this point in the history
This typo leads to
```
Error: XML-RPC fault: Parameter that is supposed to be boolean is not
```
  • Loading branch information
wncm committed Jul 27, 2017
1 parent ccb0848 commit b74ea69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Image.prototype.chgrp = function(group, callback) {
};

Image.prototype.chmod = function(user_use, user_manage, user_admin, group_use, group_manage, group_admin, other_use, other_manage, other_admin, callback) {
this.modem.call('image.chmod', [this.id, user_use, user_manage, user_admin, group_use, group_manage, group_admin, other_use, other_manage, other_admin, callback], function(err, data) {
this.modem.call('image.chmod', [this.id, user_use, user_manage, user_admin, group_use, group_manage, group_admin, other_use, other_manage, other_admin], function(err, data) {
if (err) return callback(err);
callback(null, data);
});
Expand Down

0 comments on commit b74ea69

Please sign in to comment.