lib/gooddata/lcm/actions/synchronize_processes.rb in gooddata-0.6.53 vs lib/gooddata/lcm/actions/synchronize_processes.rb in gooddata-0.6.54

- old
+ new

@@ -23,10 +23,11 @@ end RESULT_HEADER = [ :from, :to, + :name, :status ] class << self def call(params) @@ -46,23 +47,19 @@ client_id = to[:client_id] to_project = client.projects(pid) || fail("Invalid 'to' project specified - '#{pid}'") params.gdc_logger.info "Transferring processes, from project: '#{from.title}', PID: '#{from.pid}', to project: '#{to_project.title}', PID: '#{to_project.pid}'" - GoodData::Project.transfer_processes(from, to_project, ads_output_stage_uri: info.ads_output_stage_uri) + res = GoodData::Project.transfer_processes(from, to_project, ads_output_stage_uri: info.ads_output_stage_uri) to_project.add.output_stage.client_id = client_id if client_id && to_project.add.output_stage - results << { - from: from.pid, - to: to_project.pid, - status: 'ok' - } + results << res end end # Return results - results + results.flatten end end end end end