mirror of
https://github.com/ovh/the-bastion.git
synced 2025-09-06 04:54:20 +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'};
|
$key->{'from_list'} = delete $key->{'fromList'};
|
||||||
push @result, $key;
|
push @result, $key;
|
||||||
}
|
}
|
||||||
|
if (!@result) {
|
||||||
|
osh_info "No ingress keys configured for your account!";
|
||||||
|
}
|
||||||
|
|
||||||
osh_ok({keys => \@result, account => $self});
|
osh_ok({keys => \@result, account => $self});
|
||||||
|
|
|
@ -55,5 +55,8 @@ foreach my $key (@{$fnret->value || []}) {
|
||||||
$key->{'from_list'} = delete $key->{'fromList'};
|
$key->{'from_list'} = delete $key->{'fromList'};
|
||||||
push @result, $key;
|
push @result, $key;
|
||||||
}
|
}
|
||||||
|
if (!@result) {
|
||||||
|
osh_info "No ingress keys configured for this account!";
|
||||||
|
}
|
||||||
|
|
||||||
osh_ok({keys => \@result, account => $account});
|
osh_ok({keys => \@result, account => $account});
|
||||||
|
|
Loading…
Add table
Reference in a new issue