Merge pull request #1013 from zekizeki/master

Softlayer driver, correctly store provisioned VM IP address
This commit is contained in:
Evan Hazlett 2015-04-17 08:49:35 -04:00
commit cade150461
1 changed files with 1 additions and 0 deletions

View File

@ -343,6 +343,7 @@ func (d *Driver) getIp() (string, error) {
// not a perfect regex, but should be just fine for our needs
exp := regexp.MustCompile(`\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}`)
if exp.MatchString(ip) {
d.IPAddress = ip
return ip, nil
}
time.Sleep(2 * time.Second)