Permalink
Browse files

fix callbacks in IAM example

  • Loading branch information...
1 parent 46352ba commit 999d6cc28795dba964a479c98c478b5280f8f00f @mirkokiefer mirkokiefer committed Mar 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/iam.js
View
@@ -8,15 +8,15 @@ var params = {
UserName: "TestUser"
}
-iam.call("CreateUser", params, function(result) {
+iam.call("CreateUser", params, function(err, result) {
if (result["Error"]) {
console.log(JSON.stringify(result));
}
else {
params = {
UserName: params["UserName"]
}
- iam.call("CreateAccessKey", params, function(result) {
+ iam.call("CreateAccessKey", params, function(err, result) {
console.log(JSON.stringify(result));
});
}

0 comments on commit 999d6cc

Please sign in to comment.