lib/beaker/host/unix/file.rb in beaker-5.4.0 vs lib/beaker/host/unix/file.rb in beaker-5.5.0

- old
+ new

@@ -86,11 +86,11 @@ # @raise [ArgumentError] For an unknown platform # # @return [String] Path to package config dir def package_config_dir case self['platform'] - when /fedora|el-|redhat|centos/ + when /amazon|fedora|el-|redhat|centos/ '/etc/yum.repos.d/' when /opensuse|sles/ '/etc/zypp/repos.d/' when /debian|ubuntu|cumulus|huaweios/ '/etc/apt/sources.list.d' @@ -147,10 +147,10 @@ # @raise [ArgumentError] For an unknown platform # # @return [String] Type of repo (rpm|deb) def repo_type case self['platform'] - when /fedora|el-|redhat|centos|opensuse|sles/ + when /amazon|fedora|el-|redhat|centos|opensuse|sles/ 'rpm' when /debian|ubuntu|cumulus|huaweios/ 'deb' else msg = "#repo_type: repo type not known for platform '#{self['platform']}'"