fix regression - deployment fails when -u is not specified
This commit is contained in:
Родитель
36536d8167
Коммит
3d3b3a296c
|
@ -1,3 +1,6 @@
|
||||||
|
0.5.4 -
|
||||||
|
* fix deploy failure when no url is specified
|
||||||
|
|
||||||
0.5.3 -
|
0.5.3 -
|
||||||
* fix race in library function git.currentSHA - wait for "close": #98
|
* fix race in library function git.currentSHA - wait for "close": #98
|
||||||
|
|
||||||
|
|
12
awsbox.js
12
awsbox.js
|
@ -381,10 +381,14 @@ verbs['create'] = function(args) {
|
||||||
checkErr((opts.d && err) ? 'updating DNS: ' + err.msg : null);
|
checkErr((opts.d && err) ? 'updating DNS: ' + err.msg : null);
|
||||||
|
|
||||||
console.log(" ... Instance ready, setting human readable name in aws");
|
console.log(" ... Instance ready, setting human readable name in aws");
|
||||||
vm.setTags(r.instanceId, {
|
|
||||||
Name: longName,
|
// set some tags at creation (VM name included)
|
||||||
InitialDNS: dnsHost
|
var tagSet = {
|
||||||
}, function(err) {
|
Name: longName
|
||||||
|
};
|
||||||
|
if (dnsHost) tagSet.InitialDNS = dnsHost;
|
||||||
|
|
||||||
|
vm.setTags(r.instanceId, tagSet, function(err) {
|
||||||
checkErr(err);
|
checkErr(err);
|
||||||
console.log(" ... name set, waiting for ssh access and configuring");
|
console.log(" ... name set, waiting for ssh access and configuring");
|
||||||
var config = { public_url: (opts.u || "http://" + deets.ipAddress) };
|
var config = { public_url: (opts.u || "http://" + deets.ipAddress) };
|
||||||
|
|
Загрузка…
Ссылка в новой задаче