mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 01:56:39 +00:00
modify xcattest
This commit is contained in:
parent
5726012efb
commit
25f2fbce4b
@ -632,9 +632,17 @@ sub getnodeattr
|
||||
{
|
||||
my ($node, $attr) = @_;
|
||||
my @output = runcmd("lsdef -t node -o $node -i $attr");
|
||||
my $t ;
|
||||
if($::RUNCMD_RC){
|
||||
return "Unknown";
|
||||
}else{
|
||||
# return "Unknown";
|
||||
foreach $t (1 .. 40) {
|
||||
log_this("could not get node attr $attr ");
|
||||
@output = runcmd("lsdef -t node -o $node -i $attr");
|
||||
last if ($::RUNCMD_RC == 0);
|
||||
}
|
||||
|
||||
}
|
||||
if($::RUNCMD_RC == 0){
|
||||
foreach my $output1 (@output){
|
||||
if($output1 =~ /$attr=(\w.+)/){
|
||||
log_this("$attr is $1");
|
||||
|
Loading…
x
Reference in New Issue
Block a user