2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Remove trailing spaces in file xCAT-server/lib/xcat/plugins/mknb.pm

This commit is contained in:
GONG Jie 2017-12-31 23:59:59 +00:00
parent 5aea21eff3
commit 6e096b05ad

View File

@ -45,7 +45,7 @@ sub process_request {
if (defined($t_entry)) {
$xcatdport = $t_entry;
}
@entries = xCAT::TableUtils->get_site_attribute("dhcpinterfaces");
$t_entry = $entries[0];
if (defined($t_entry)) {
@ -69,13 +69,13 @@ sub process_request {
foreach (split /[,\s]+/, $dhcpif) {
my ($nicname, $flag) = split /:/;
if ($flag and $flag =~ /noboot/i) {
$nobootnics{$nicname} = 1;
$nobootnics{$nicname} = 1;
}
}
}
my $nicips = xCAT::NetworkUtils->get_nic_ip();
foreach (keys %$nicips) {
# To support tagged vlan, create entries in the hash for the
# To support tagged vlan, create entries in the hash for the
# interface name removing the physical interface ending:
# 'enP1p12s0f0.2@enP1p12s0f0' => 'enP1p12s0f0.2'
if ($_ =~ "@") {