fog-kubevirt 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0943d37da16b3d47be971ecd55a253508275a834'
4
- data.tar.gz: f8b23b0d7c2ef8ef6769e5f9318b4efc8b80c07a
3
+ metadata.gz: 40e231b4d296140ac0ca47ba87e7e505045a175b
4
+ data.tar.gz: 544172769894bdd6ae6500ddf13bc4c8664844e8
5
5
  SHA512:
6
- metadata.gz: 2fbdd1c0d3aaccba43a1f3270dc0fe2eeadb0b90f3dfe30df2442b16866bc2211913096b0b52d1d5022905362cb2e80cd79b2ff4f431817d2fa201eafbf9ad8e
7
- data.tar.gz: 50a64408a54c66330c31e6c9b74db16eb70c16dbaf3bd45496e8fd705d85079267c7171a1370f1deeed169f3cd511ab7197aa5afb7cb370c6c12b1df0c3a28f8
6
+ metadata.gz: e24894d4f40469c4e607aa35cfa88a09809001d70e264ad8673f858e7e3a9862f07556b4c8672a1c5d283d7cbc0d2b004d2b66419414149fdd16102f5e443e3e
7
+ data.tar.gz: 802ab241d152f50068b3a0d2379e423d2d41307f07fa32cf67f86ba40cd0d5e5af8bbde631175b14f3121d6a1c4c5862f636d2818082c9195c04d876b4d516d6
@@ -218,14 +218,14 @@ module Fog
218
218
  end
219
219
 
220
220
  def valid?
221
+ kube_client.api_valid?
222
+
221
223
  begin
222
224
  kube_client.get_namespace(namespace)
223
225
  rescue => err
224
226
  @log.warn("The namespace [#{namespace}] does not exist on the kubernetes cluster: #{err.message}")
225
227
  raise "The namespace '#{namespace}' does not exist on the kubernetes cluster"
226
228
  end
227
-
228
- kube_client.api_valid?
229
229
  end
230
230
 
231
231
  class WatchWrapper
@@ -19,8 +19,10 @@ module Fog
19
19
  service.delete_vm(name, namespace)
20
20
  end
21
21
 
22
+ # TODO: Once IP Addresses are reported to any networks, we should consider also
23
+ # the availabity of it (by extending the condition with !ip_address.empty?)
22
24
  def ready?
23
- running?(status) && running?(state) && !ip_address.empty?
25
+ running?(status) && running?(state)
24
26
  end
25
27
 
26
28
  def self.parse(object)
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Kubevirt
3
- VERSION = '1.1.1'
3
+ VERSION = '1.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-kubevirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Kliczewski