Skip to content
Snippets Groups Projects
Commit 15ea4d0f authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

fix items count on removal

parent cf186b04
Branches
Tags
No related merge requests found
...@@ -135,7 +135,7 @@ sub list_accounts { ...@@ -135,7 +135,7 @@ sub list_accounts {
foreach my $account (@$accounts) { foreach my $account (@$accounts) {
$account->delete() or die "failed to delete test account\n"; $account->delete() or die "failed to delete test account\n";
} }
printf "%d accounts removed\n", @$accounts; printf "%d accounts removed\n", scalar @$accounts;
die "failed to update simpleSAMLphp configuration file\n" die "failed to update simpleSAMLphp configuration file\n"
unless IdPAccountManager::Tools::update_ssp_authsources( unless IdPAccountManager::Tools::update_ssp_authsources(
...@@ -258,7 +258,7 @@ sub list_tokens { ...@@ -258,7 +258,7 @@ sub list_tokens {
foreach my $token (@$tokens) { foreach my $token (@$tokens) {
$token->delete() or die "failed to delete authentication token\n"; $token->delete() or die "failed to delete authentication token\n";
} }
printf "%d tokens removed\n", @$tokens; printf "%d tokens removed\n", scalar @$tokens;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment