mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 18:59:41 +00:00
print_drive: Use $skip to avoid the need to copy the hash
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
375db731f7
commit
d7117b5adb
@ -1655,9 +1655,8 @@ sub parse_drive {
|
|||||||
|
|
||||||
sub print_drive {
|
sub print_drive {
|
||||||
my ($drive) = @_;
|
my ($drive) = @_;
|
||||||
my $data = { %$drive };
|
my $skip = [ 'index', 'interface' ];
|
||||||
delete $data->{$_} for qw(index interface);
|
return PVE::JSONSchema::print_property_string($drive, $alldrive_fmt, $skip);
|
||||||
return PVE::JSONSchema::print_property_string($data, $alldrive_fmt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub scsi_inquiry {
|
sub scsi_inquiry {
|
||||||
|
Loading…
Reference in New Issue
Block a user