got rid of some warnings for undef models

This commit is contained in:
Max Baker
2004-10-28 21:37:36 +00:00
parent dceec4f537
commit d5afa9f592

View File

@@ -157,7 +157,9 @@ sub os_ver {
sub model {
my $hp = shift;
my $id = $hp->id();
return undef unless defined $id;
my $model = &SNMP::translateObj($id);
return $id unless defined $model;
$model =~ s/^hpswitch//i;