vagrant-1cloud 1.0.4 → 1.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0856a59309590f13a7976777462fb3d33bbe2f7e
4
- data.tar.gz: 036b7db899e06fc0bed1cf48d1ff7e9afdac239c
3
+ metadata.gz: 39045b31767e94ee70f0ee3f5dde820a002106bf
4
+ data.tar.gz: 3b81d4c841b7b00ea7a132bd02eb09df8fc70882
5
5
  SHA512:
6
- metadata.gz: d8572f8739a2403180ed09ebff71c7f73f2100d7fd4f85fd761a65fd1ea9dd0967da502b60f7c92852f92edead77ee6c54f0e93b2115374ff7cb0ce8931e46ea
7
- data.tar.gz: e46a8ea7108ae23c0781ce3b265700bfb30df5004723b9917c55d3af093f812be5b1bf73d64624baf9c677968fa3eca88b093b5cab2deb2fcfd65a8c37589de3
6
+ metadata.gz: be00a5ed4273da3365b128ba065b891f3ad166b9b5e99f219187d34e35fc36a385a168d3aa9a33645e545f9ac4da86163d63d32292b793eb75a0a5544e6f41a7
7
+ data.tar.gz: 567eca714df3dc1b611bca6cd8731b08d0f0b3510b5f233ffbcacd4922ad78e395fa9ee4647627693604712035fb281c3734fa0258e0a64d47ccffde321d3224
@@ -80,7 +80,7 @@ module VagrantPlugins
80
80
 
81
81
  $i += 1
82
82
  else
83
- raise 'not ready'
83
+ raise 'No ssh connection'
84
84
  end
85
85
  end
86
86
  end
@@ -57,7 +57,7 @@ module VagrantPlugins
57
57
 
58
58
  $i += 1
59
59
  else
60
- raise 'not ready'
60
+ raise 'No ssh connection'
61
61
  end
62
62
  end
63
63
  end
@@ -23,9 +23,9 @@ module VagrantPlugins
23
23
  lockfile = "/tmp/" + net.to_s + ".lock"
24
24
  f = File.open(lockfile, "w+")
25
25
 
26
- retryable(:tries => 120, :sleep => 10) do
26
+ retryable(:tries => 200, :sleep => 10) do
27
27
  next if env[:interrupted]
28
- raise 'not ready' if check_file_locked?(lockfile)
28
+ raise 'Problem with lockfile' if check_file_locked?(lockfile)
29
29
  end
30
30
 
31
31
  f.flock(File::LOCK_EX)
@@ -54,7 +54,7 @@ module VagrantPlugins
54
54
 
55
55
  $i += 1
56
56
  else
57
- raise 'not ready'
57
+ raise 'No ssh connection'
58
58
  end
59
59
  end
60
60
  end
@@ -80,7 +80,7 @@ module VagrantPlugins
80
80
  end
81
81
 
82
82
  def wait_for_event(env, m_id, id)
83
- retryable(:tries => 120, :sleep => 10) do
83
+ retryable(:tries => 200, :sleep => 10) do
84
84
  # stop waiting if interrupted
85
85
  next if env[:interrupted]
86
86
 
@@ -88,12 +88,12 @@ module VagrantPlugins
88
88
  result = self.request("/server/#{m_id}/action/#{id}")
89
89
 
90
90
  yield result if block_given?
91
- raise 'not ready' if result['body']['State'] != 'Completed'
91
+ raise 'Action is not completed' if result['body']['State'] != 'Completed'
92
92
  end
93
93
  end
94
94
 
95
95
  def wait_for_network(env, net_id)
96
- retryable(:tries => 120, :sleep => 10) do
96
+ retryable(:tries => 200, :sleep => 10) do
97
97
  # stop waiting if interrupted
98
98
  next if env[:interrupted]
99
99
 
@@ -101,7 +101,7 @@ module VagrantPlugins
101
101
  result = self.request("/network/#{net_id}")
102
102
 
103
103
  yield result if block_given?
104
- raise 'not ready' if result['body']['State'] != 'Active'
104
+ raise 'Network is not active' if result['body']['State'] != 'Active'
105
105
  end
106
106
  end
107
107
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module OneCloud
3
- VERSION = '1.0.4'
3
+ VERSION = '1.0.5'
4
4
  end
5
- end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-1cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bulat Yusupov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-03 00:00:00.000000000 Z
11
+ date: 2017-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday