fencing 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/fencing/classifier.rb +4 -1
- data/lib/fencing/facter_adapter.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1792c65db27f1c50c955ddba4645a579bfc69d9
|
|
4
|
+
data.tar.gz: a334942bbc1d251c042dc179a30c59ba9a958587
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f548f065de3914b6aa6d48629f9768ea03d6fb50f9075501791f4198b9bb2c7dd6369da25b200e57a83b7a6597f9a908179be1dcfc21ebb9e93f0fdd10b6cc7
|
|
7
|
+
data.tar.gz: 972eeab178f2d8e3ce5deb45e464f32d0f170ba2275b2d05030bfd85ed0f4666f867d4c3e64723f09cf88c1081016c0f254ae4774df300593ad28eaf0df2fd29
|
data/Rakefile
CHANGED
|
@@ -11,7 +11,7 @@ require 'rspec/core/rake_task'
|
|
|
11
11
|
|
|
12
12
|
spec = Gem::Specification.new do |gem|
|
|
13
13
|
gem.name = "fencing"
|
|
14
|
-
gem.version = '0.1.
|
|
14
|
+
gem.version = '0.1.2'
|
|
15
15
|
gem.authors = ["George McIntosh"]
|
|
16
16
|
gem.email = ["george@elevenware.com"]
|
|
17
17
|
gem.summary = %q{A Puppet ENC that releases config based on configuration}
|
data/lib/fencing/classifier.rb
CHANGED
|
@@ -19,7 +19,10 @@ module OS
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def assert_blocked(host_name, blocker)
|
|
22
|
-
|
|
22
|
+
if !blocker
|
|
23
|
+
Log.log("No blocker exists - returning")
|
|
24
|
+
return
|
|
25
|
+
end
|
|
23
26
|
allowed_host = blocker.blocking_host_name
|
|
24
27
|
Log.log("blocker not blocking #{allowed_host}")
|
|
25
28
|
return if host_name.start_with?(allowed_host)
|