summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/action_manager.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/interface/action_manager.rb')
-rw-r--r--lib/puppet/interface/action_manager.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/puppet/interface/action_manager.rb b/lib/puppet/interface/action_manager.rb
index c5eb8e08a..fbf588d7d 100644
--- a/lib/puppet/interface/action_manager.rb
+++ b/lib/puppet/interface/action_manager.rb
@@ -34,7 +34,10 @@ module Puppet::Interface::ActionManager
elsif self.class.respond_to?(:actions)
result += self.class.actions
end
- result.sort
+ # We need to uniq the result, because we duplicate actions when they are
+ # fetched to ensure that they have the correct bindings; they shadow the
+ # parent, and uniq implements that. --daniel 2011-06-01
+ result.uniq.sort
end
def get_action(name)