puppet-lint-legacy_facts-check 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppet-lint/plugins/legacy_facts.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3414ffa92730c4f8459fc01f09fb622722b51307f56edf03b273fc2ced2012a7
|
4
|
+
data.tar.gz: fe4f6cbf92b4188500320a25044df4f0ee4b6e3249c49e508bfed28c2cc93409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9540c885f1373049188aa1a0d1d26a3082ec30f405b41e961e48e9c6ac1247d7ffafb3ebf4c4f0029fcf0bd3b7dab0af3a8bffe1bc747368781971a6a73360a
|
7
|
+
data.tar.gz: ae54bd5ba78586c210f3e0b07e6b9f575662d71b1b01162c6f7ddba36bf3a721f083ad1646f5399f5174ab5458a42905702d8f6ff0b11ce7c465243fdacee214
|
@@ -1,5 +1,5 @@
|
|
1
1
|
PuppetLint.new_check(:legacy_facts) do
|
2
|
-
|
2
|
+
LEGACY_FACTS_VAR_TYPES = Set[:VARIABLE, :UNENC_VARIABLE]
|
3
3
|
|
4
4
|
# These facts that can't be converted to new facts for reasons documented at
|
5
5
|
# https://github.com/mmckinst/puppet-lint-legacy_facts-check#limitations
|
@@ -97,7 +97,7 @@ PuppetLint.new_check(:legacy_facts) do
|
|
97
97
|
'zonename' => "facts['solaris_zones']['current']",
|
98
98
|
}
|
99
99
|
def check
|
100
|
-
tokens.select { |x|
|
100
|
+
tokens.select { |x| LEGACY_FACTS_VAR_TYPES.include?(x.type) }.each do |token|
|
101
101
|
fact_name = ''
|
102
102
|
|
103
103
|
# Get rid of the top scope before we do our work. We don't need to
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-lint-legacy_facts-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark McKinstry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puppet-lint
|