Skip to content

Commit 04674a5

Browse files
committed
add check for primary_postgresql_host and run add_database if it exists
1 parent 979a03c commit 04674a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plans/migrate.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@
123123
out::message('No nodes to purge from old configuration')
124124
}
125125

126-
if $primary_postgresql_host {
126+
if $primary_postgresql_host {
127127
run_plan('peadm::add_database', targets => $primary_postgresql_host,
128128
primary_host => $new_primary_host,
129-
is_migration => true,
130129
)
131130
}
132131

0 commit comments

Comments
 (0)