Changeset 207


Ignore:
Timestamp:
Feb 16, 2017, 7:46:22 PM (8 years ago)
Author:
g7moreau
Message:
  • More robust parameter in status method
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/klask

    r206 r207  
    20392039   my $port        = shift @ARGV || q{};
    20402040
     2041   if ($switch_name eq q{} or $port eq q{}) {
     2042      die "Usage: klask status SWITCH_NAME PORT\n";
     2043      }
     2044
     2045   if (not defined $SWITCH_DB{$switch_name}) {
     2046      die "Switch $switch_name must be defined in klask configuration file\n";
     2047      }
     2048
    20412049   my $sw = $SWITCH_DB{$switch_name};
    20422050   my %session = ( -hostname   => $sw->{hostname} );
Note: See TracChangeset for help on using the changeset viewer.