Skip to content
Permalink
Browse files

Fix recovery_threshold / recovery_shares conditional

  • Loading branch information...
jeffwecan committed Mar 27, 2019
1 parent 9ea1a50 commit e36373831178a01bb6ad142cd6a618cf0feb736b
Showing with 1 addition and 1 deletion.
  1. +1 −1 hvac/api/system_backend/init.py
@@ -86,7 +86,7 @@ def initialize(self, secret_shares=5, secret_threshold=3, pgp_keys=None, root_to
params['recovery_shares'] = recovery_shares

if recovery_threshold is not None:
if recovery_threshold > recovery_shares:
if recovery_threshold <= recovery_shares:
error_msg = 'value for recovery_threshold argument be less than or equal to recovery_shares argument'
raise ParamValidationError(error_msg)
params['recovery_threshold'] = recovery_threshold

0 comments on commit e363738

Please sign in to comment.
You can’t perform that action at this time.