mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Removed option opts[:local] as always local_action are required
This commit is contained in:
parent
c57e10154f
commit
5c5e3df525
@ -87,7 +87,6 @@ class OpenNebulaDriver < ActionManager
|
||||
# @option ops [String] :script_name default script name for the action,
|
||||
# action name is used by defaults
|
||||
# @option ops [String] :respond if defined will send result to ONE core
|
||||
# @option ops [String] :local if defined will execute the action locally
|
||||
def do_action(parameters, id, host, aname, ops={})
|
||||
options={
|
||||
:stdin => nil,
|
||||
@ -99,7 +98,7 @@ class OpenNebulaDriver < ActionManager
|
||||
params = parameters+" #{id} #{host}"
|
||||
command = action_command_line(aname, params, options[:script_name])
|
||||
|
||||
if options[:local] || action_is_local?(aname)
|
||||
if action_is_local?(aname)
|
||||
execution = LocalCommand.run(command, log_method(id))
|
||||
elsif options[:ssh_stream]
|
||||
if options[:stdin]
|
||||
|
Loading…
x
Reference in New Issue
Block a user