From d15c5893b372eaac431e83ffa05aecf92ecbec01 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Wed, 9 Dec 2015 12:00:52 -0800 Subject: [PATCH] Fix `triton rbac role NAME`. --- lib/do_rbac/do_role.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/do_rbac/do_role.js b/lib/do_rbac/do_role.js index a08e9ff..a51b899 100644 --- a/lib/do_rbac/do_role.js +++ b/lib/do_rbac/do_role.js @@ -52,7 +52,7 @@ function _showRole(opts, cb) { assert.func(cb, 'cb'); var cli = opts.cli; - cli.cloudapi.getRole({id: opts.id}, function onRole(err, role) { + cli.tritonapi.cloudapi.getRole({id: opts.id}, function onRole(err, role) { if (err) { cb(err); return; @@ -181,7 +181,7 @@ function _editRole(opts, cb) { } - cli.cloudapi.getRole({id: opts.id}, function onRole(err, role_) { + cli.tritonapi.cloudapi.getRole({id: opts.id}, function onRole(err, role_) { if (err) { return cb(err); }