Skip to content

Commit

Permalink
FIX: ls timeout when instance is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Broer committed Feb 26, 2016
1 parent 136cc1b commit 516c819
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vultr.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@ func (d *Driver) createSSHKey() (*vultr.SSHKey, error) {
}

func (d *Driver) GetURL() (string, error) {
s, err := d.GetState()
if err != nil {
return "", err
}

if s != state.Running {
return "", drivers.ErrHostIsNotRunning
}

ip, err := d.GetIP()
if err != nil {
return "", err
Expand Down

0 comments on commit 516c819

Please sign in to comment.