Skip to content

Commit

Permalink
Refs #32534 - dont use SmartProxyDynflowCore
Browse files Browse the repository at this point in the history
Remove usage of SmartProxyDynflowCore.
  • Loading branch information
ezr-ondrej committed Jun 23, 2021
1 parent 58a2b63 commit 70e8c21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/smart_proxy_dynflow/action/batch_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def plan(input_hash, results)

def run
payload = format_payload(input['targets'], input['results'])
SmartProxyDynflowCore::Callback::Request.new.callback({ :callbacks => payload }.to_json)
Proxy::Dynflow::Callback::Request.new.callback({ :callbacks => payload }.to_json)
end

private
Expand Down
2 changes: 1 addition & 1 deletion lib/smart_proxy_dynflow/action/batch_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def plan(launcher, input)
end

def initiate_runner
launcher = SmartProxyDynflowCore::TaskLauncherRegistry.fetch(input[:operation])
launcher = Proxy::Dynflow::TaskLauncherRegistry.fetch(input[:operation])
launcher.runner_class.new(input[:targets], suspended_action: suspended_action)
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/smart_proxy_dynflow/action/shareable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ def plan(input)
planned_action = plan_self(input)
# code only applicable, when run with SmartProxyDynflowCore in place
if on_proxy? && callback
plan_action(SmartProxyDynflowCore::Callback::Action, callback, planned_action.output)
plan_action(Proxy::Dynflow::Callback::Action, callback, planned_action.output)
end
end

private

def on_proxy?
defined?(SmartProxyDynflowCore::Callback)
defined?(Proxy::Dynflow::Callback)
end
end
end

0 comments on commit 70e8c21

Please sign in to comment.