From 039ce9e0b82a9e24b0f598fbe528b80feb3fdf3c Mon Sep 17 00:00:00 2001 From: "Vladimir Sharshov (warpc)" Date: Tue, 28 Mar 2017 16:39:03 +0300 Subject: [PATCH] Do not send data about nodes in case of task deployment Nailgun use data about nodes in stop deployment respond to reset it to discovory state which is unexpected behavior for already provisioned nodes in case of task deployment Change-Id: I39de8a8afd627b0bf209d9a7f6ad6e19abd99016 Partial-Bug: #1672964 --- lib/astute/server/dispatcher.rb | 2 +- spec/unit/dispatcher_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/astute/server/dispatcher.rb b/lib/astute/server/dispatcher.rb index 30cb5910..b1f8281e 100644 --- a/lib/astute/server/dispatcher.rb +++ b/lib/astute/server/dispatcher.rb @@ -281,7 +281,7 @@ module Astute Astute.config.stop_timeout, target_task_uuid, service_data - ).merge({'nodes' => nodes}) + ) else kill_main_process(target_task_uuid, service_data) @orchestrator.stop_provision( diff --git a/spec/unit/dispatcher_spec.rb b/spec/unit/dispatcher_spec.rb index 852a32ce..b373d5b4 100644 --- a/spec/unit/dispatcher_spec.rb +++ b/spec/unit/dispatcher_spec.rb @@ -111,7 +111,7 @@ describe Astute::Server::Dispatcher do dispatcher.expects(:gracefully_stop_main_process).with('0000-0000', service_data) dispatcher.expects(:wait_while_process_run).with(anything, anything, '0000-0000', service_data) .returns({}) - dispatcher.expects(:report_result).with({'nodes' => [{'uid' => 1}]}, anything) + dispatcher.expects(:report_result).with({}, anything) dispatcher.stop_deploy_task(data, service_data) end