Skip to content

Commit

Permalink
Merge pull request #244 from nmburgan/maint/main/aix_fix
Browse files Browse the repository at this point in the history
(maint) Use unversioned AIX pe_repo class
  • Loading branch information
jonathannewman committed Dec 5, 2023
2 parents 73e9317 + 6dce89a commit fdee0d9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/beaker-pe/install/pe_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -495,19 +495,14 @@ def deploy_frictionless_to_master(host)
# For some platforms (e.g, redhatfips), packaging_platfrom is set and should
# be used as the primary source of truth for the platform string.
platform = host['packaging_platform'] || host['platform']
# We don't have a separate AIX 7.2 build prior to 2023, so it is
# classified as 7.1 for pe_repo purposes
if platform == "aix-7.2-power" && version_is_less(master[:pe_ver], '2023.0.0')
platform = "aix-7.1-power"
end
klass = platform.gsub(/-/, '_').gsub(/\./,'')
if host['platform'] =~ /windows/
if host['template'] =~ /i386/
klass = "pe_repo::platform::windows_i386"
else
klass = "pe_repo::platform::windows_x86_64"
end
elsif platform =~ /aix-.*-power/ && !version_is_less(master[:pe_ver], '2022.99.99')
elsif platform =~ /aix-.*-power/ && !version_is_less(master[:pe_ver], '2019.0.3')
klass = "pe_repo::platform::aix_power"
else
klass = "pe_repo::platform::#{klass}"
Expand Down

0 comments on commit fdee0d9

Please sign in to comment.