error check in serial()
This commit is contained in:
@@ -131,6 +131,7 @@ sub serial {
|
|||||||
# procurve 2xxx have this
|
# procurve 2xxx have this
|
||||||
my $serial = $hp->serial1();
|
my $serial = $hp->serial1();
|
||||||
|
|
||||||
|
return undef unless defined $serial;
|
||||||
# 4xxx dont
|
# 4xxx dont
|
||||||
return undef if $serial =~ /nosuchobject/i;
|
return undef if $serial =~ /nosuchobject/i;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user