mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 20:30:56 +00:00
Fix MacMap.pm syntax issue
The issue is not using '%' when getting keys for a hash variable.
This commit is contained in:
@ -303,7 +303,7 @@ sub dump_mac_info {
|
||||
xCAT::MsgUtils->message("S","xCAT Table error:".$entry->{node}."Has missing or invalid switch.switch and/or switch.port fields");
|
||||
}
|
||||
}
|
||||
foreach my $switch (keys $self->{switchparmhash}) {
|
||||
foreach my $switch (keys %{$self->{switchparmhash}}) {
|
||||
if ($dump_all_switches or defined($switches_to_dump{$switch})) {
|
||||
if ($self->{show_verbose_info}) {
|
||||
xCAT::MsgUtils->message("I",{data=>["<INFO>$switch: Start to get information"]}, $self->{callback});
|
||||
|
Reference in New Issue
Block a user