builder/amazon/all: use new SSHAddress method [GH-243]
This commit is contained in:
parent
1b8551d843
commit
4e8db89403
|
@ -4,6 +4,8 @@ BUG FIXES:
|
||||||
|
|
||||||
* core: Absolute/relative filepaths on Windows now work for iso_url
|
* core: Absolute/relative filepaths on Windows now work for iso_url
|
||||||
and other settings. [GH-240]
|
and other settings. [GH-240]
|
||||||
|
* builder/amazon/all: instance info is refreshed while waiting for SSH,
|
||||||
|
allowing Packer to see updated IP/DNS info. [GH-243]
|
||||||
|
|
||||||
## 0.2.2 (August 1, 2013)
|
## 0.2.2 (August 1, 2013)
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
SubnetId: b.config.SubnetId,
|
SubnetId: b.config.SubnetId,
|
||||||
},
|
},
|
||||||
&common.StepConnectSSH{
|
&common.StepConnectSSH{
|
||||||
SSHAddress: awscommon.SSHAddress(b.config.SSHPort),
|
SSHAddress: awscommon.SSHAddress(ec2conn, b.config.SSHPort),
|
||||||
SSHConfig: awscommon.SSHConfig(b.config.SSHUsername),
|
SSHConfig: awscommon.SSHConfig(b.config.SSHUsername),
|
||||||
SSHWaitTimeout: b.config.SSHTimeout(),
|
SSHWaitTimeout: b.config.SSHTimeout(),
|
||||||
},
|
},
|
||||||
|
|
|
@ -167,7 +167,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
|
||||||
SubnetId: b.config.SubnetId,
|
SubnetId: b.config.SubnetId,
|
||||||
},
|
},
|
||||||
&common.StepConnectSSH{
|
&common.StepConnectSSH{
|
||||||
SSHAddress: awscommon.SSHAddress(b.config.SSHPort),
|
SSHAddress: awscommon.SSHAddress(ec2conn, b.config.SSHPort),
|
||||||
SSHConfig: awscommon.SSHConfig(b.config.SSHUsername),
|
SSHConfig: awscommon.SSHConfig(b.config.SSHUsername),
|
||||||
SSHWaitTimeout: b.config.SSHTimeout(),
|
SSHWaitTimeout: b.config.SSHTimeout(),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue