Skip to content

Commit f1e0e8e

Browse files
(PE-40377) final fix for download path and updated final checks
1 parent 7faa72b commit f1e0e8e

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

plans/migrate.pp

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,12 @@
1414
$backup_file = run_plan('peadm::backup', $old_primary_host, {
1515
backup_type => 'migration',
1616
})
17-
out::message("Backup file: ${backup_file}")
18-
out::message("Backup file path: ${backup_file['path']}")
19-
$down_results = download_file($backup_file['path'], 'backup', $old_primary_host)
20-
out::message("Download results: ${down_results}")
21-
$download_path = $down_results[0]['path']
2217

23-
out::message("Download path: ${download_path}")
18+
$download_results = download_file($backup_file['path'], 'backup', $old_primary_host)
19+
$download_path = $download_results[0]['path']
20+
2421
$backup_filename = basename($backup_file['path'])
2522
$remote_backup_path = "/tmp/${backup_filename}"
26-
$current_dir = system::env('PWD')
27-
out::message("backup_filename: ${backup_filename}")
28-
out::message("remote_backup_path: ${remote_backup_path}")
29-
out::message("current_dir: ${current_dir}")
3023

3124
upload_file($download_path, $remote_backup_path, $new_primary_host)
3225

spec/acceptance/peadm_spec/plans/test_migration.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
}
5757

5858
# get the config from new_primary_target and verify config looks as expected
59-
$result = run_task('peadm::get_peadm_config', $new_primary_target, '_catch_errors' => true).first.to_data()
60-
out::message("peadm_config: ${result}")
59+
$peadm_config = run_task('peadm::get_peadm_config', $new_primary_target, '_catch_errors' => true).first.to_data()
60+
out::message("peadm_config: ${peadm_config}")
6161
# if new_replica_target is supplied then check that is in the expected place in the config
6262
if $new_replica_target {
6363
if $peadm_config['params']['replica_host'] == $new_replica_target {

0 commit comments

Comments
 (0)