Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/plugins/stonith/external/vcenter
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ elsif (grep /^\Q$command\E$/, @netCommands) {
eval {
# VI API: searches the inventory tree for a VirtualMachine managed entity whose name matches
# the name of the virtual machine assigned to the target host in HOSTLIST
$vm = Vim::find_entity_view(view_type => "VirtualMachine", filter => { name => qr/^\Q$host_to_vm{$targetHost}\E/i });
$vm = Vim::find_entity_view(view_type => "VirtualMachine", filter => { name => qr/\A\Q$host_to_vm{$targetHost}\E\z/i });
if (!defined $vm) {
dielog("Machine $targetHost was not found");
}
Expand Down