diff --git a/bin/plugin/open/selfListIngressKeys b/bin/plugin/open/selfListIngressKeys index ab0b7ee..af505d7 100755 --- a/bin/plugin/open/selfListIngressKeys +++ b/bin/plugin/open/selfListIngressKeys @@ -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}); diff --git a/bin/plugin/restricted/accountListIngressKeys b/bin/plugin/restricted/accountListIngressKeys index cb0093d..b61cf38 100755 --- a/bin/plugin/restricted/accountListIngressKeys +++ b/bin/plugin/restricted/accountListIngressKeys @@ -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});