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
This commit is contained in:
parent
0145a4abf5
commit
039ce9e0b8
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue