2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-07-31 18:19:40 +00:00

fix(dhcp): use complete Ubuntu release for backend selection

This commit is contained in:
Vinícius Ferrão
2026-07-18 00:58:49 -03:00
parent a80e1e7cfa
commit c340abd543
+1 -1
View File
@@ -58,7 +58,7 @@ sub default_backend {
}
my $os_name = exists $args{os_name} ? $args{os_name} : $class->_osver('os');
my $version = exists $args{version} ? $args{version} : $class->_osver('version');
my $version = exists $args{version} ? $args{version} : ( split /,/, $class->_osver('all'), 2 )[1];
if ( defined($os_name) && $os_name =~ /^ubuntu$/i && defined($version) && $version =~ /^\d+\.\d+(?:\.\d+)*$/ ) {
require xCAT::Utils;
return 'kea' if xCAT::Utils->version_cmp( $version, '22.04' ) >= 0;