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

check if there is "-l" options

This commit is contained in:
Casandra Qiu
2017-01-24 16:05:01 -05:00
parent 6f698625db
commit 8782186f6b

View File

@ -980,8 +980,8 @@ sub fork_fanout_dsh
= @_;
#get username and passeword for switches
if (($$options{'devicetype'} =~ /EthSwitch/) {
($$options{'devicetype'} =~ /IBSwitch/) ){
if (($$options{'devicetype'} =~ /EthSwitch/) ||
(($$options{'devicetype'} =~ /IBSwitch/) && !($$options{'user'})) ){
if (@$targets_waiting > 0) {
if ($ENV{'DSH_REMOTE_PASSWORD'}) {
foreach my $t (keys(%$resolved_targets)) {