Skip to content

Commit

Permalink
Remove deprecated method
Browse files Browse the repository at this point in the history
This commit removes the deprecated get_puppet_collection method.
  • Loading branch information
mhashizume committed Feb 8, 2024
1 parent 366bbec commit 56133a8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/beaker-puppet/install_utils/puppet_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,6 @@ def remove_puppet_paths_on(hosts)
end
end

# Given an agent_version, return the puppet collection associated with that agent version
#
# @param [String] agent_version version string or 'latest'
# @deprecated This method returns 'PC1' as the latest puppet collection;
# this is incorrect. Use {#puppet_collection_for} instead.
def get_puppet_collection(agent_version = 'latest')
collection = 'PC1'
if agent_version != 'latest'
if !version_is_less(agent_version, '5.5.4') and version_is_less(agent_version, '5.99')
collection = 'puppet5'
elsif !version_is_less(agent_version, '5.99')
collection = 'puppet6'
end
end
collection
end

# Determine the puppet collection that matches a given package version. The package
# must be one of
# * :puppet_agent (you can get this version from the `aio_agent_version_fact`)
Expand Down

0 comments on commit 56133a8

Please sign in to comment.