mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-02 21:49:42 +00:00
use PVE::Tools::split_list
This commit is contained in:
parent
b3c2bdd1f1
commit
45827685a7
@ -880,7 +880,7 @@ sub parse_hotplug_features {
|
||||
|
||||
$data = $confdesc->{hotplug}->{default} if $data eq '1';
|
||||
|
||||
foreach my $feature (split(/,/, $data)) {
|
||||
foreach my $feature (PVE::Tools::split_list($data)) {
|
||||
if ($feature =~ m/^(network|disk|cpu|memory|usb)$/) {
|
||||
$res->{$1} = 1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user