Skip to content

Commit

Permalink
Merge pull request #635 from leongyh/patch-1
Browse files Browse the repository at this point in the history
Update health.py to match new Vault API query parameters
  • Loading branch information
jeffwecan committed Sep 21, 2020
2 parents 8abe483 + c51e5e6 commit 4b4532d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hvac/api/system_backend/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Health(SystemBackendMixin):
""".
Reference: https://www.vaultproject.io/api/system/index.html
Reference: https://www.vaultproject.io/api-docs/system/health
"""

def read_health_status(self, standby_ok=None, active_code=None, standby_code=None, dr_secondary_code=None,
Expand Down Expand Up @@ -44,13 +44,13 @@ def read_health_status(self, standby_ok=None, active_code=None, standby_code=Non
:rtype: requests.Response
"""
params = utils.remove_nones({
'standby_ok': standby_ok,
'active_code': active_code,
'standby_code': standby_code,
'dr_secondary_code': dr_secondary_code,
'performance_standby_code': performance_standby_code,
'sealed_code': sealed_code,
'uninit_code': uninit_code,
'standbyok': standby_ok,
'activecode': active_code,
'standbycode': standby_code,
'drsecondarycode': dr_secondary_code,
'performancestandbycode': performance_standby_code,
'sealedcode': sealed_code,
'uninitcode': uninit_code,
})

if method == 'HEAD':
Expand Down

0 comments on commit 4b4532d

Please sign in to comment.