hiera-ldapprovider 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiera/backend/ldap.rb +1 -1
- data/lib/hiera/backend/ldap_backend.rb +3 -2
- 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: 6ee30da16fb82bea174ebb04441b660ff5e7333a
|
4
|
+
data.tar.gz: 0ea7e232efbc119c6b10fac83ce4b6dde78938f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bee4e972a6480f15e14056103e5afbdc03f29c5f8d88577ab0feab7ce928fd56f78513cd180c5d361b1fabac56bb2f3b172d8a690e941fb4e40080edfeb2f0d4
|
7
|
+
data.tar.gz: 6a063ec85631242dd17ed32b267816485fecdbdcf2f8c3dea57991235e503d60c1fe66ec20b987c58dc57459e49ab55b7ca19eb1e29dc6e0c9dcf04e246bebad
|
data/lib/hiera/backend/ldap.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'core_ext/string/json'
|
3
|
-
require 'core_ext/string/yaml'
|
4
2
|
require 'net/ldap'
|
5
3
|
require 'net/ldap/connection'
|
6
4
|
require 'hiera/backend/ldap'
|
@@ -49,6 +47,7 @@ class Hiera
|
|
49
47
|
else
|
50
48
|
Hiera.warn("Tried to access non-existing attribute: %s" % key)
|
51
49
|
Hiera.warn("Attributes: %s" % entry.attribute_names.inspect)
|
50
|
+
return nil
|
52
51
|
end
|
53
52
|
end
|
54
53
|
rescue Exception => e
|
@@ -61,6 +60,8 @@ class Hiera
|
|
61
60
|
answer << result
|
62
61
|
answer.flatten!
|
63
62
|
when :hash
|
63
|
+
require 'core_ext/string/json'
|
64
|
+
require 'core_ext/string/yaml'
|
64
65
|
answer ||= {}
|
65
66
|
result.each do |res|
|
66
67
|
res = res.to_s
|