2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

Fix MacMap.pm syntax issue

The issue is not using '%' when getting keys for a hash variable.
This commit is contained in:
zet809
2016-06-01 11:40:10 +08:00
parent 9cd9a14a42
commit 98caf993bf

View File

@ -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});