Skip to content

Commit 7d73255

Browse files
committed
(maint) Drop unused master_agent_version variable
1 parent a8fc54c commit 7d73255

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

manifests/params.pp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,9 @@
6666
else {
6767
$collection = 'puppet8'
6868
}
69-
# The aio puppet-agent version currently installed on the compiling master
70-
# (only used in PE)
71-
if is_function_available('pe_compiling_server_aio_build') {
72-
$master_agent_version = pe_compiling_server_aio_build()
73-
} else {
74-
$master_agent_version = undef
75-
}
7669
} else {
7770
$_pe_version = undef
7871
$pe_repo_dir = undef
79-
$master_agent_version = undef
8072
$collection = 'PC1'
8173
}
8274
}

spec/classes/puppet_agent_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def global_facts(facts, os)
237237
before(:each) do
238238
Puppet::Parser::Functions.newfunction(:pe_build_version, type: :rvalue) { |_args| '2000.0.0' }
239239
Puppet::Parser::Functions.newfunction(:pe_compiling_server_aio_build, type: :rvalue) { |_args| '1.10.100' }
240-
Puppet::Parser::Functions.newfunction(:pe_compiling_server_version, type: :rvalue) { |_args| '2.20.200' }
240+
Puppet::Type.newtype(:pe_anchor)
241241
end
242242

243243
context 'package_version is initialized automatically' do

0 commit comments

Comments
 (0)