vmpooler-provider-vsphere 3.3.0 → 3.3.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
  SHA256:
3
- metadata.gz: 20c2a4a1b0dc357031f0b0267ec960c14cb459da7ce7acf0c21afe367d63e97c
4
- data.tar.gz: a77f8880fdc9b0b3dcf27825beaa51bf9e35cf10ed455b8303a3bf51d581a5ce
3
+ metadata.gz: d9d1e5c560f99863e969eb9d646e39a5c403180f9897e9b0be79969aecad8a87
4
+ data.tar.gz: 2027241040ee908ca07d7b4d153a07d94e9edffb5d26b61751d278a6171911fb
5
5
  SHA512:
6
- metadata.gz: 03a9c20a95b03c1c1cb732b21e5ef3bc6250f9d92c323c8193f76f8a1cfc628a5b1da9daf1a046302c1d8b162e0d3d47a7fed60687676fad6df8235902eda828
7
- data.tar.gz: e89be73a7264cf4729f156174a78f0f10d2354b275a87005c1cc5b1e84af99306e9f81afb4964e9c47da951c0158a34113221749d403f0a6ab36e967ade561d2
6
+ metadata.gz: 6e7c0160091ecd07f882c6c30bef4f35f57f780a829d0aa2f364d33103cf9a75e3611d7f9c8f448549c37fe29a7007ec4e96b34b7114f54b2a1c09b74ea156c9
7
+ data.tar.gz: 49bc7405f68116ea1843ab53b239a68df3eb544aa59167451bd4e7d8ad586ff0d601019b0be6c18a283d3d9596829e8cfafb1c62b70b2ab05df549ce58836090
@@ -599,13 +599,15 @@ module Vmpooler
599
599
  boottime = vm_object.runtime.bootTime if vm_object.runtime&.bootTime
600
600
  powerstate = vm_object.runtime.powerState if vm_object.runtime&.powerState
601
601
 
602
- ip_maxloop = 60
602
+ ip_maxloop = 240
603
603
  ip_loop_delay = 1
604
604
  ip_loop_count = 1
605
605
  ip = nil
606
+ invalid_addresses = /(0|169)\.(0|254)\.\d+\.\d+/
606
607
  while ip.nil?
607
608
  sleep(ip_loop_delay)
608
609
  ip = vm_object.guest_ip
610
+ ip = nil if !ip.nil? && ip.match?(invalid_addresses)
609
611
  unless ip_maxloop == 0
610
612
  break if ip_loop_count >= ip_maxloop
611
613
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VmpoolerProviderVsphere
4
- VERSION = '3.3.0'
4
+ VERSION = '3.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmpooler-provider-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-18 00:00:00.000000000 Z
11
+ date: 2023-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement