Merge pull request #426 from sthulb/virtualbox-state

Remove $ from regexp for Windows users
This commit is contained in:
Evan Hazlett 2015-01-28 11:10:22 -05:00
commit 9b55d4f0a9
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ func (d *Driver) GetState() (state.State, error) {
}
return state.Error, err
}
re := regexp.MustCompile(`(?m)^VMState="(\w+)"$`)
re := regexp.MustCompile(`(?m)^VMState="(\w+)"`)
groups := re.FindStringSubmatch(stdout)
if len(groups) < 1 {
return state.None, nil