We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61fd4b5 commit 6b422dcCopy full SHA for 6b422dc
lib/ActionLib.js
@@ -95,10 +95,11 @@ ActionLib.prototype.__getRoles__ = function() {
95
callback("could not get role from data posted!");
96
}
97
roleReqObj = JSON.parse(postData);
98
- this.setActiveRole(roleReqObj.alias);
99
- if (! arnLib.getArn(this.getActiveRole())) {
100
- throw this.getActiveRole() + " role not found!";
+
+ if (! arnLib.getArn(roleReqObj.alias)) {
+ throw roleReqObj.alias + " role not found!";
101
} else {
102
+ this.setActiveRole(roleReqObj.alias);
103
return JSON.stringify({ active_role: this.getActiveRole() }, null, ' ');
104
105
0 commit comments