From d12e43c4bad3f73a62a24487c0158dfd25b1ead8 Mon Sep 17 00:00:00 2001 From: Saurabh Pandit Date: Wed, 6 Mar 2024 19:55:29 +0530 Subject: [PATCH] [PA-6181]: Added amazon in 'if' condition, so that it does not raise exception while installing puppetlabs dev repo --- lib/beaker-puppet/install_utils/foss_utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/beaker-puppet/install_utils/foss_utils.rb b/lib/beaker-puppet/install_utils/foss_utils.rb index 49ef8b9..eb07bad 100644 --- a/lib/beaker-puppet/install_utils/foss_utils.rb +++ b/lib/beaker-puppet/install_utils/foss_utils.rb @@ -1148,7 +1148,7 @@ def install_puppetlabs_dev_repo(host, package_name, build_version, repo_configs_dir = nil, opts = options) variant, version, arch, codename = host['platform'].to_array - if variant !~ /^(fedora|el|redhat|centos|debian|ubuntu|huaweios|cisco_nexus|cisco_ios_xr|sles)$/ + if variant !~ /^(amazon|fedora|el|redhat|centos|debian|ubuntu|huaweios|cisco_nexus|cisco_ios_xr|sles)$/ raise "No repository installation step for #{variant} yet..." end @@ -1162,7 +1162,7 @@ def install_puppetlabs_dev_repo(host, package_name, build_version, # url type _, protocol, hostname = opts[:dev_builds_url].partition %r{.*://} dev_builds_url = protocol + hostname - dev_builds_url = opts[:dev_builds_url] if variant =~ /^(fedora|el|redhat|centos)$/ + dev_builds_url = opts[:dev_builds_url] if variant =~ /^(amazon|fedora|el|redhat|centos)$/ install_repo_configs(host, dev_builds_url, package_name, build_version, platform_configs_dir)