mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 16:40:34 +00:00
agent hotplug: small style cleanups & comment addition
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
74ea2c65a9
commit
33f8b88782
@ -5015,17 +5015,17 @@ sub vmconfig_update_agent {
|
||||
my $old_agent = parse_guest_agent($conf);
|
||||
my $agent = parse_guest_agent({$opt => $value});
|
||||
|
||||
#added/changed options
|
||||
foreach my $option (keys %$agent) {
|
||||
for my $option (keys %$agent) { # added/changed options
|
||||
next if defined($hotplug_options->{$option});
|
||||
die "skip\n" if safe_string_ne($agent->{$option}, $old_agent->{$option});
|
||||
}
|
||||
|
||||
#removed options
|
||||
foreach my $option (keys %$old_agent) {
|
||||
for my $option (keys %$old_agent) { # removed options
|
||||
next if defined($hotplug_options->{$option});
|
||||
die "skip\n" if safe_string_ne($old_agent->{$option}, $agent->{$option});
|
||||
}
|
||||
|
||||
return; # either no actual change (e.g., format string reordered) or just hotpluggable changes
|
||||
}
|
||||
|
||||
sub vmconfig_update_disk {
|
||||
|
Loading…
Reference in New Issue
Block a user