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 +4 -4
- data/lib/vmpooler/api/helpers.rb +9 -11
- data/lib/vmpooler/version.rb +1 -1
- data/lib/vmpooler.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 557f2f80846f8334073ff9bf58ec145a74e0f99cea917c5416f37f5039767f88
|
4
|
+
data.tar.gz: 871ff8d1b1e9f877dd4eff3f6a69219bdf8cdba1097a75bf2442a0cf910b77ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4313226f2acf7e2d04549a29b823ad4cda457b749277ac2d48827ee8d8e158b089374ed48356634bbce8a499d655bc980d0d4766dc221944de10ee876ba9b212
|
7
|
+
data.tar.gz: b1ff5950dfa5ce3770f464767f41930f06f8a480657a191b8f3d0d5ab76412e7380c56f991393624376f7071867a7a79c1a93c0c07a96853efc1cd1abbdbbf0e
|
data/lib/vmpooler/api/helpers.rb
CHANGED
@@ -540,17 +540,15 @@ module Vmpooler
|
|
540
540
|
},
|
541
541
|
kind: :client
|
542
542
|
) do
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
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
|
data/lib/vmpooler/version.rb
CHANGED
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
|
+
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:
|
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.
|
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
|