Skip to content

Commit

Permalink
refactor: missing parenthesis in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Nov 6, 2023
1 parent 32f010f commit 4e3011f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ravada/Domain/KVM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ sub _disk_device($self, $with_info=undef, $attribute=undef, $value=undef) {
my ($boot_node) = $disk->findnodes('boot');
my $info = {};
eval { $info = $self->_volume_info($file)
if $file && $device eq 'disk' or $device eq 'cdrom' };
if $file && ( $device eq 'disk' or $device eq 'cdrom') };
die $@ if $@ && $@ !~ /not found/i;
$info->{device} = $device;
if (!$info->{name} ) {
Expand Down

0 comments on commit 4e3011f

Please sign in to comment.