Skip to content

Commit 75ae177

Browse files
MAINT see if excluding the restore on a replica helps
1 parent f6c6813 commit 75ae177

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plans/restore.pp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,12 @@
7878
undef => $primary_target,
7979
default => peadm::get_targets(getvar('cluster.params.primary_postgresql_host'), 1),
8080
},
81-
getvar('cluster.params.replica_postgresql_host') ? {
82-
undef => $replica_target,
83-
default => peadm::get_targets(getvar('cluster.params.replica_postgresql_host'), 1),
81+
($restore_type != 'migration') ? {
82+
true => getvar('cluster.params.replica_postgresql_host') ? {
83+
undef => $replica_target,
84+
default => peadm::get_targets(getvar('cluster.params.replica_postgresql_host'), 1),
85+
},
86+
default => [],
8487
},
8588
])
8689

0 commit comments

Comments
 (0)