facter 4.2.7 → 4.2.8

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: 5648b99a92b05c556d728186e4df5fed506b8edf3ca2ac1e77708a2ebe9b8359
4
- data.tar.gz: 9e58e46ab92d8d4aeffcf54a4b13b8d25ca751e08669f73c067a245cb96bdd93
3
+ metadata.gz: 3abae20894fc4d31ecfa8190b26307c05f73dce8454b1caa5ae0753cf6f17928
4
+ data.tar.gz: 7f5e4ed7f8eda7306ef86101e8a7d61c59b1dd1e56104875378bbd7113b19632
5
5
  SHA512:
6
- metadata.gz: 467e8ef226865d0ae6d88fca05bc8c44e4dbbc10dec1e8117947e68dac09b5046878eaf3e2a45d1dd572b9b3b76f44ff14a7c62653df83854ee38172a0e576cf
7
- data.tar.gz: 71405bf059cbba0572136a4d67db8700542f62f668a4f50f7fe99a818f82bc5f114bb8f12baa3a86be5bd59e50337e23e34f485dd5bae522c0d0a8ee8206a928
6
+ metadata.gz: dcfeebbb72dd925224405095a1043bd6e99ef30afc4395f896172f1441b88a1c4c454ff812c4d23e71da823e20e54b30ae76e08602dd70fd5376c7f5a583f23a
7
+ data.tar.gz: 3cccf97b96203afddc850670e73ddc96bfffa9dc5f7949d567f89f44be68a39ba642ec04d930154b874d1b02cc9c98a5a0ae0d78cd96f6a17089ee6b4c01e7c2
@@ -10,6 +10,8 @@ module Facts
10
10
  provider = case Facter::Util::Facts::Posix::VirtualDetector.platform
11
11
  when 'hyperv'
12
12
  'azure' unless Facter::Resolvers::Az.resolve(:metadata).empty?
13
+ when 'kvm', 'xen'
14
+ 'aws' unless Facter::Resolvers::Ec2.resolve(:metadata).empty?
13
15
  end
14
16
 
15
17
  Facter::ResolvedFact.new(FACT_NAME, provider)
@@ -11,6 +11,8 @@ module Facts
11
11
  provider = case virtual
12
12
  when 'hyperv'
13
13
  'azure' unless Facter::Resolvers::Az.resolve(:metadata).empty?
14
+ when 'kvm', 'xen'
15
+ 'aws' unless Facter::Resolvers::Ec2.resolve(:metadata).empty?
14
16
  end
15
17
 
16
18
  Facter::ResolvedFact.new(FACT_NAME, provider)
@@ -34,7 +34,7 @@ module Facter
34
34
 
35
35
  def lsblk(option, disk)
36
36
  result = Facter::Core::Execution.execute(
37
- "/usr/bin/lsblk -dn -o #{option} /dev/#{disk}", on_fail: '', timeout: 1
37
+ "lsblk -dn -o #{option} /dev/#{disk}", on_fail: '', timeout: 1
38
38
  ).strip
39
39
  result.empty? ? nil : result
40
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Facter
4
- VERSION = '4.2.7' unless defined?(VERSION)
4
+ VERSION = '4.2.8' unless defined?(VERSION)
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.7
4
+ version: 4.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-12 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -1094,7 +1094,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1094
1094
  - !ruby/object:Gem::Version
1095
1095
  version: '0'
1096
1096
  requirements: []
1097
- rubygems_version: 3.0.8
1097
+ rubygems_version: 3.1.6
1098
1098
  signing_key:
1099
1099
  specification_version: 4
1100
1100
  summary: Facter, a system inventory tool