Skip to content

Commit f6de1ec

Browse files
committed
Refs #38124 - Add correct description for invalidating multiple users jwt
1 parent 1d6dcde commit f6de1ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/hammer_cli_foreman/registration_tokens.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ class RegistrationTokens < HammerCLIForeman::Command
77
class InvalidateMultipleCommand < HammerCLIForeman::DeleteCommand
88
action :invalidate_jwt_tokens
99
command_name 'invalidate-multiple'
10-
success_message _('Successfully invalidated registration tokens for %{users}.')
10+
success_message _('Successfully invalidated registration tokens for %<users>s.')
1111
failure_message _('Could not invalidate registration tokens')
12+
option '--search', 'SEARCH',
13+
_('Search query that selects users for which registration tokens will be invalidated. Search query example: id ^ (2, 4, 6)'), required: true
1214

1315
build_options
1416
end
1517

1618
class InvalidateCommand < HammerCLIForeman::DeleteCommand
1719
action :invalidate_jwt
1820
command_name 'invalidate'
19-
success_message _('Successfully invalidated registration tokens for %{user}.')
21+
success_message _('Successfully invalidated registration tokens for %<user>s.')
2022
failure_message _('Could not invalidate registration tokens')
2123

2224
build_options

0 commit comments

Comments
 (0)