[Pkg-puppet-devel] [facter] 163/352: (FACT-65) Allow resolutions to specify their name as an option
Stig Sandbeck Mathisen
ssm at debian.org
Sun Apr 6 22:21:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit 23345ebf840b9a74a5e5823c6d63314155f403e0
Author: Adrien Thebo <git at somethingsinistral.net>
Date: Mon Jan 13 14:48:23 2014 -0800
(FACT-65) Allow resolutions to specify their name as an option
---
lib/facter/util/resolution.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/facter/util/resolution.rb b/lib/facter/util/resolution.rb
index c5c159f..4129309 100644
--- a/lib/facter/util/resolution.rb
+++ b/lib/facter/util/resolution.rb
@@ -106,7 +106,9 @@ class Facter::Util::Resolution
end
def set_options(options)
- ret = {}
+ if options[:name]
+ @name = options.delete(:name)
+ end
if options.has_key?(:value)
@value = options.delete(:value)
@@ -123,8 +125,6 @@ class Facter::Util::Resolution
if not options.keys.empty?
raise ArgumentError, "Invalid resolution options #{options.keys.inspect}"
end
-
- ret
end
# Returns the importance of this resolution. If the weight was not
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list