From 7c19164f78a24f1aa0145ad31902f61269889785 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 28 Oct 2024 13:37:00 +1100 Subject: [PATCH] Update fail_plan pe_primary target. --- plans/migrate_node.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plans/migrate_node.pp b/plans/migrate_node.pp index bc3720b..70ee9db 100644 --- a/plans/migrate_node.pp +++ b/plans/migrate_node.pp @@ -1,4 +1,4 @@ -# @summary PE plan to migrate nodes to another PE server +# @summary PE plan to migrate nodes to another PE server. # # lint:ignore:140chars # @@ -94,7 +94,7 @@ '_catch_errors' => true ) $ok_set_length = length("${confirm_pe_primary_server_results.ok_set}") if length("${confirm_pe_primary_server_results.ok_set}") <= 2 { - fail_plan("Primary server provided not the primary server for this Puppet Enterprise installation: ${pe_server_target.name} ") + fail_plan("Primary server provided not the primary server for this Puppet Enterprise installation: ${origin_pe_primary_target.name} ") } # Check if target pe address is an array. If so we test the first address only.