enh: print a msg when no ingress keys are found

This commit is contained in:
Stéphane Lesimple 2022-06-29 10:11:01 +00:00 committed by Stéphane Lesimple
parent 7a043165bc
commit bd2f069c7e
2 changed files with 6 additions and 0 deletions

View file

@ -35,5 +35,8 @@ foreach my $key (@{$fnret->value || []}) {
$key->{'from_list'} = delete $key->{'fromList'};
push @result, $key;
}
if (!@result) {
osh_info "No ingress keys configured for your account!";
}
osh_ok({keys => \@result, account => $self});

View file

@ -55,5 +55,8 @@ foreach my $key (@{$fnret->value || []}) {
$key->{'from_list'} = delete $key->{'fromList'};
push @result, $key;
}
if (!@result) {
osh_info "No ingress keys configured for this account!";
}
osh_ok({keys => \@result, account => $account});