Skip to content

Commit 243ed0d

Browse files
author
Matthew Dobson
committed
Fix bugs, syntax errors, and test the configuration option using just a token.
1 parent df6bd55 commit 243ed0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli/lib/cert-lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ function getPublicKeyPrivate(authUri, cb) {
411411
function generateCredentialsObject(options) {
412412
if(options.token) {
413413
return {
414-
'bearer': options.token;
414+
'bearer': options.token
415415
};
416416
} else {
417417
return {

cli/lib/deploy-auth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Deployment.prototype.checkDeployedProxies = function checkDeployedProxies(option
123123
};
124124

125125
if(options.token) {
126-
opts.token = token;
126+
opts.token = options.token;
127127
} else {
128128
opts.username = options.username;
129129
opts.password = options.password;
@@ -153,7 +153,7 @@ function deployProxyWithPassword(managementUri,authUri, options, dir, callback)
153153
virtualhosts: options.virtualHosts || DEFAULT_HOSTS
154154
};
155155

156-
if(optios.token) {
156+
if(options.token) {
157157
opts.token = options.token;
158158
} else {
159159
opts.username = options.username;

0 commit comments

Comments
 (0)