Skip to content

Commit

Permalink
Fix check for action
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Nov 28, 2023
1 parent 9cff940 commit 768cc5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,7 @@ def validate_input(args):
if 'keyserver' in args:
warn('--keyserver option is deprecated. It is safe to remove it')

if (args.action == 'enable'
or args.action == 'disable'
or args.action == 'list'):
if 'enable' or 'disable' or 'list' in args['ACTION']:
pass
else:
error('Unknown action: ' + args.action)
Expand Down

0 comments on commit 768cc5a

Please sign in to comment.