Merge pull request #34 from ClusterLabs/distro-support

* Updated the os_type regex to detect CentOS Stream properly.
main
digimer-bot 4 years ago committed by GitHub
commit 93d0648ef5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Anvil/Tools/Get.pm

@ -1827,7 +1827,7 @@ sub os_type
$os_type = "rhel".$1;
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { os_type => $os_type }});
}
elsif ($release =~ /CentOS .*? (\d+)\./)
elsif ($release =~ /CentOS .*? (\d+)\.?/)
{
# CentOS, with the major version number appended
$os_type = "centos".$1;

Loading…
Cancel
Save