vagrant-plugin-dummy 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,10 +45,22 @@ module VagrantPluginDummy
45
45
  ip = nil
46
46
  while not ip do
47
47
  ip = nil
48
+ # Try to get process list from guest, even with fake credentials
49
+ # otherwise getGuestIPAddress will not return any value
50
+ begin
51
+ @machine.provider.driver.send(:vmrun, *['-gu', 'user',
52
+ '-gp', 'password',
53
+ 'listProcessesInGuest',
54
+ @machine.id])
55
+ rescue Exception => e
56
+ @logger.warn(e.message)
57
+ end
58
+
48
59
  begin
49
60
  resp = @machine.provider.driver.send(:vmrun, *['getGuestIPAddress', @machine.id])
50
61
  rescue Exception => e
51
62
  @logger.warn(e.message)
63
+ sleep(1)
52
64
  else
53
65
  m = /(?<ip>\d{1,3}\.\d{1,3}.\d{1,3}\.\d{1,3})/.match(resp.stdout)
54
66
  ip = (resp.exit_code == 0 and m) ? m['ip'] : nil
@@ -1,3 +1,3 @@
1
1
  module VagrantPluginDummy
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-plugin-dummy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-27 00:00:00.000000000 Z
12
+ date: 2014-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake