Skip to content

Commit 7fb8ff6

Browse files
committed
adding reviewed changes from github, fixing errors that variable names were causing
1 parent c3bbab1 commit 7fb8ff6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

plans/migrate.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
$all_hosts = peadm::flatten_compact([
2828
$old_primary_host,
2929
$new_primary_host,
30-
$replica_host ? { undef => [], default => [$replica_host] }
30+
$replica_host ? { undef => [], default => [$replica_host] },
31+
$primary_postgresql_host ? { undef => [], default => [$primary_postgresql_host] }
3132
].flatten)
3233
run_command('hostname', $all_hosts) # verify can connect to targets
3334

spec/acceptance/peadm_spec/plans/test_migration.pp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
String $primary_host,
33
String $new_primary_host,
44
Optional[String] $new_replica_host = undef,
5-
Optional[String] $primary_postgresql_host = undef,
65
Optional[String] $new_primary_postgresql_host = undef,
76
Optional[String] $new_replica_postgresql_host = undef,
87
Optional[String] $upgrade_version = undef,
@@ -11,7 +10,6 @@
1110
$primary_target = $primary_host ? { '' => undef, default => peadm::get_targets($primary_host, 1) }
1211
$new_primary_target = $new_primary_host ? { '' => undef, default => peadm::get_targets($new_primary_host, 1) }
1312
$new_replica_target = $new_replica_host ? { '' => undef, default => peadm::get_targets($new_replica_host, 1) }
14-
$primary_postgresql_target = $primary_postgresql_host ? { '' => undef, default => peadm::get_targets($primary_postgresql_host, 1) }
1513
$new_primary_postgresql_target = $new_primary_postgresql_host ? { '' => undef, default => peadm::get_targets($new_primary_postgresql_host, 1) }
1614
$new_replica_postgresql_target = $new_replica_postgresql_host ? { '' => undef, default => peadm::get_targets($new_replica_postgresql_host, 1) }
1715

@@ -32,8 +30,7 @@
3230
new_primary_host => $new_primary_target,
3331
upgrade_version => $upgrade_version,
3432
replica_host => $new_replica_target,
35-
primary_postgresql_host => $primary_postgresql_target,
36-
new_primary_postgresql_host => $new_primary_postgresql_target,
33+
primary_postgresql_host => $new_primary_postgresql_target,
3734
)
3835

3936
# run infra status on the new primary

0 commit comments

Comments
 (0)