Skip to content

Commit bfe2ee8

Browse files
(PE-40377) deal with upload issue
1 parent 66d7d18 commit bfe2ee8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plans/migrate.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$remote_backup_path = "/tmp/${backup_filename}"
2222
$current_dir = system::env('PWD')
2323

24-
upload_file("${current_dir}/downloads/backup/${old_primary_host}/${backup_filename}", $remote_backup_path, $new_primary_host)
24+
upload_file("${current_dir}/downloads/backup/${old_primary_host.peadm::certname()}/${backup_filename}", $remote_backup_path, $new_primary_host)
2525

2626
$old_primary_target = get_targets($old_primary_host)[0]
2727
$old_primary_password = peadm::get_pe_conf($old_primary_target)['console_admin_password']

spec/acceptance/peadm_spec/plans/test_migration.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
out::message("new_replica_postgresql_host:${new_replica_postgresql_host}.")
1414
out::message("upgrade_version:${upgrade_version}.")
1515

16-
# Convert String values to Peadm::SingleTargetSpec if they are not blank
16+
# Convert String values to targets if they are not blank
1717
$primary_target = $primary_host ? { '' => undef, default => peadm::get_targets($primary_host, 1) }
1818
$new_primary_target = $new_primary_host ? { '' => undef, default => peadm::get_targets($new_primary_host, 1) }
1919
$new_replica_target = $new_replica_host ? { '' => undef, default => peadm::get_targets($new_replica_host, 1) }

0 commit comments

Comments
 (0)