Changeset 215 for trunk/klask


Ignore:
Timestamp:
Feb 18, 2017, 2:25:55 PM (7 years ago)
Author:
g7moreau
Message:
  • Small bug in test (forget not)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r214 r215  
    759759   $sw_port_hr =~ s/^Giga/Gi/i;
    760760
    761    return $sw_port_hr;
     761   return ucfirst $sw_port_hr;
    762762   }
    763763
     
    21442144   # Retrieve numeric port value
    21452145   my $port_num = snmp_get_switchport_num($session, normalize_port_human_readable($port), $verbose ? 'yes' : '');
    2146    die "Error : Port $port not exist on switch $switch_name\n" if $port_num =~ m/^\d+$/;
     2146   die "Error : Port $port not exist on switch $switch_name\n" if not $port_num =~ m/^\d+$/;
    21472147
    21482148   my $search_portstatus = $OID_NUMBER{'portUpDown'} .'.'. $port_num;
Note: See TracChangeset for help on using the changeset viewer.