Skip to content

Commit

Permalink
Verify that 'identity-v1' state machine is used
Browse files Browse the repository at this point in the history
Following #426.
  • Loading branch information
romanz committed Sep 2, 2023
1 parent 6776971 commit 23c6349
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libagent/age/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ def main(device_type):
try:
if args.identity:
run_pubkey(device_type=device_type, args=args)
elif args.age_plugin:
elif args.age_plugin == 'identity-v1':
run_decrypt(device_type=device_type, args=args)
else:
log.error("Unsupported state machine: %r", args.age_plugin)
except Exception as e: # pylint: disable=broad-except
log.exception("age plugin failed: %s", e)

Expand Down

0 comments on commit 23c6349

Please sign in to comment.