mirror of
https://github.com/ovh/the-bastion.git
synced 2025-09-04 12:04:11 +08:00
enh: print a msg when no ingress keys are found
This commit is contained in:
parent
7a043165bc
commit
bd2f069c7e
2 changed files with 6 additions and 0 deletions
|
@ -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});
|
||||
|
|
|
@ -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});
|
||||
|
|
Loading…
Add table
Reference in a new issue