Skip to content

Commit

Permalink
(maint) Drop unused master_agent_version variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Jul 10, 2023
1 parent a8fc54c commit 7d73255
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,9 @@
else {
$collection = 'puppet8'
}
# The aio puppet-agent version currently installed on the compiling master
# (only used in PE)
if is_function_available('pe_compiling_server_aio_build') {
$master_agent_version = pe_compiling_server_aio_build()
} else {
$master_agent_version = undef
}
} else {
$_pe_version = undef
$pe_repo_dir = undef
$master_agent_version = undef
$collection = 'PC1'
}
}
2 changes: 1 addition & 1 deletion spec/classes/puppet_agent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def global_facts(facts, os)
before(:each) do
Puppet::Parser::Functions.newfunction(:pe_build_version, type: :rvalue) { |_args| '2000.0.0' }
Puppet::Parser::Functions.newfunction(:pe_compiling_server_aio_build, type: :rvalue) { |_args| '1.10.100' }
Puppet::Parser::Functions.newfunction(:pe_compiling_server_version, type: :rvalue) { |_args| '2.20.200' }
Puppet::Type.newtype(:pe_anchor)
end

context 'package_version is initialized automatically' do
Expand Down

0 comments on commit 7d73255

Please sign in to comment.