We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6c6813 commit 75ae177Copy full SHA for 75ae177
plans/restore.pp
@@ -78,9 +78,12 @@
78
undef => $primary_target,
79
default => peadm::get_targets(getvar('cluster.params.primary_postgresql_host'), 1),
80
},
81
- getvar('cluster.params.replica_postgresql_host') ? {
82
- undef => $replica_target,
83
- default => peadm::get_targets(getvar('cluster.params.replica_postgresql_host'), 1),
+ ($restore_type != 'migration') ? {
+ true => getvar('cluster.params.replica_postgresql_host') ? {
+ undef => $replica_target,
84
+ default => peadm::get_targets(getvar('cluster.params.replica_postgresql_host'), 1),
85
+ },
86
+ default => [],
87
88
])
89
0 commit comments