summaryrefslogtreecommitdiffstats
path: root/lib/facter.rb
diff options
context:
space:
mode:
authorluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2007-06-11 22:01:13 +0000
committerluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2007-06-11 22:01:13 +0000
commit86e3d8ef645003fc115651fbad21bb63813497bf (patch)
treee191fb94244176ad7867886b095ab47bf18afdd5 /lib/facter.rb
parentb582612ea1260e89fba010f93cad144d2fcbcbed (diff)
downloadfacter-86e3d8ef645003fc115651fbad21bb63813497bf.tar.gz
facter-86e3d8ef645003fc115651fbad21bb63813497bf.tar.xz
facter-86e3d8ef645003fc115651fbad21bb63813497bf.zip
Setting the ldapname so it is guaranteed to be a string
git-svn-id: http://reductivelabs.com/svn/facter/trunk@205 1f5c1d6a-bddf-0310-8f58-fc49e503516a
Diffstat (limited to 'lib/facter.rb')
-rw-r--r--lib/facter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter.rb b/lib/facter.rb
index e5a22d7..eca65b8 100644
--- a/lib/facter.rb
+++ b/lib/facter.rb
@@ -229,7 +229,7 @@ class Facter
@value = nil
- @ldapname = name
+ @ldapname = name.to_s
end
# Add a new resolution mechanism. This requires a block, which will then
@@ -473,7 +473,7 @@ class Facter
# Set the name by which this parameter is known in LDAP. The default
# is just the fact name.
def setldapname(name)
- @fact.ldapname = name
+ @fact.ldapname = name.to_s
end
# Is this resolution mechanism suitable on the system in question?