Permalink
Browse files

support for command.accept_extra_params in command loader

  • Loading branch information...
1 parent 3eeeeae commit ab4e508d53e36cad1837df7082594b68d28b987a @philippt philippt committed Jan 20, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/command_loader.rb
  2. +1 −1 lib/plugins/core/commands/select_machine.rb
View
@@ -195,7 +195,7 @@ def with_contributions(&block)
def method_missing(name, *args)
# allow direct access to some of RHCP::Command's methods (delegation, i presume)
- if [:mark_as_read_only, :params].include?(name)
+ if [:mark_as_read_only, :params, :accept_extra_params].include?(name)
@command.send(name, *args)
elsif [:config_string].include?(name)
@plugin.send(name, *args)
@@ -1,6 +1,6 @@
description "selects a machine to work with (and updates the 'host' context parameter)"
-param :machine_without_context
+param :machine_without_context, :is_default_param => true
execute_request do |request, response|
new_machine = request.get_param_value("machine")

0 comments on commit ab4e508

Please sign in to comment.