(plugin) apps::monitoring::ntopng::restapi - Fix interface option not consider if the value is quoted in the command line (#3763)

This commit is contained in:
THEPAUT 2022-06-30 15:52:40 -04:00 committed by GitHub
parent a690ad33ad
commit be41798691
4 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ sub new {
$options{options}->add_options(arguments => {
'filter-type:s' => { name => 'filter_type' },
'filter-severity:s' => { name => 'filter_severity' },
'interface:i' => { name => 'interface', default => 0 },
'interface:s' => { name => 'interface', default => 0 },
'period:s' => { name => 'period', default => 'last-5mns' }
});

View File

@ -97,7 +97,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'interface:i' => { name => 'interface', default => 0 },
'interface:s' => { name => 'interface', default => 0 },
'ip:s' => { name => 'ip' }
});

View File

@ -120,7 +120,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'interface:i' => { name => 'interface', default => 0 }
'interface:s' => { name => 'interface', default => 0 }
});
return $self;

View File

@ -75,7 +75,7 @@ sub new {
bless $self, $class;
$options{options}->add_options(arguments => {
'interface:i' => { name => 'interface', default => 0 }
'interface:s' => { name => 'interface', default => 0 }
});
return $self;