mirror of https://github.com/docker/docs.git
Go fmt the cloud backend
Docker-DCO-1.1-Signed-off-by: Ben Firshman <ben@firshman.co.uk> (github: bfirsh)
This commit is contained in:
parent
a3f701dbf6
commit
fd9c7c9cfa
|
@ -91,7 +91,7 @@ func (s *cloud) Install(eng *engine.Engine) error {
|
||||||
ip, err := cloud.GetPublicIPAddress(instance, zone)
|
ip, err := cloud.GetPublicIPAddress(instance, zone)
|
||||||
instanceRunning := len(ip) > 0
|
instanceRunning := len(ip) > 0
|
||||||
if !instanceRunning {
|
if !instanceRunning {
|
||||||
log.Print("Instance doesn't exist, creating....");
|
log.Print("Instance doesn't exist, creating....")
|
||||||
_, err = cloud.CreateInstance(instance, zone)
|
_, err = cloud.CreateInstance(instance, zone)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue