vmpooler 2.4.0 → 2.5.0

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: 4642648148ddd5b7d470163c4509ccad6f3a377f0f20dc1a43a940aaacf6a157
4
- data.tar.gz: 7fe2d19cbfb839a750872d09adf01048d23dba9aa345b6e1150e3787f5c47f51
3
+ metadata.gz: 557f2f80846f8334073ff9bf58ec145a74e0f99cea917c5416f37f5039767f88
4
+ data.tar.gz: 871ff8d1b1e9f877dd4eff3f6a69219bdf8cdba1097a75bf2442a0cf910b77ec
5
5
  SHA512:
6
- metadata.gz: bf2dc2f68527913308264c10f7c986523e9bc4922cc1b1283a9125596d74e474f30ae973ecec7c29c6c7f524ab016cc98e59caffa690185af588e00505de7a0e
7
- data.tar.gz: 357a8436751c0e47d29bd00cea9f9e380548f6a19ed541e6c0487d5da9afc7840aadae79911d17439571339cf1b8a6e8c414fb2653ac6a72f1c254c8903bcb3d
6
+ metadata.gz: 4313226f2acf7e2d04549a29b823ad4cda457b749277ac2d48827ee8d8e158b089374ed48356634bbce8a499d655bc980d0d4766dc221944de10ee876ba9b212
7
+ data.tar.gz: b1ff5950dfa5ce3770f464767f41930f06f8a480657a191b8f3d0d5ab76412e7380c56f991393624376f7071867a7a79c1a93c0c07a96853efc1cd1abbdbbf0e
@@ -540,17 +540,15 @@ module Vmpooler
540
540
  },
541
541
  kind: :client
542
542
  ) do
543
- Timeout.timeout(timeout) do
544
- target_host = host
545
- target_host = "#{host}.#{domain}" if domain
546
- span = OpenTelemetry::Trace.current_span
547
- span.set_attribute('net.peer.name', target_host)
548
- sock = TCPSocket.new target_host, port
549
- begin
550
- yield sock if block_given?
551
- ensure
552
- sock.close
553
- end
543
+ target_host = host
544
+ target_host = "#{host}.#{domain}" if domain
545
+ span = OpenTelemetry::Trace.current_span
546
+ span.set_attribute('net.peer.name', target_host)
547
+ sock = TCPSocket.new(target_host, port, connect_timeout: timeout)
548
+ begin
549
+ yield sock if block_given?
550
+ ensure
551
+ sock.close
554
552
  end
555
553
  end
556
554
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vmpooler
4
- VERSION = '2.4.0'
4
+ VERSION = '2.5.0'
5
5
  end
data/lib/vmpooler.rb CHANGED
@@ -34,7 +34,7 @@ module Vmpooler
34
34
  config_string = ENV['VMPOOLER_CONFIG']
35
35
  # Parse the YAML config into a Hash
36
36
  # Allow the Symbol class
37
- parsed_config = YAML.safe_load(config_string, [Symbol])
37
+ parsed_config = YAML.safe_load(config_string, permitted_classes: [Symbol])
38
38
  else
39
39
  # Take the name of the config file either from an ENV variable or from the filepath argument
40
40
  config_file = ENV['VMPOOLER_CONFIG_FILE'] || filepath
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmpooler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-25 00:00:00.000000000 Z
11
+ date: 2023-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -500,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
500
500
  - !ruby/object:Gem::Version
501
501
  version: '0'
502
502
  requirements: []
503
- rubygems_version: 3.2.29
503
+ rubygems_version: 3.3.25
504
504
  signing_key:
505
505
  specification_version: 4
506
506
  summary: vmpooler provides configurable pools of instantly-available (running) virtual