From b1cbe02cc8fe66869109cb097c20d1751684ad2c Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 27 Oct 2022 12:56:55 -0700 Subject: [PATCH] Support hvac 1.0.0 --- main.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 922d55a..329ba04 100644 --- a/main.py +++ b/main.py @@ -44,7 +44,7 @@ def login(): elif request.method == "POST": client = Client(VAULT_ADDR) username, password = request.form["username"], request.form["password"] - client.auth_userpass(username, password) + client.auth.userpass.login(username, password) assert client.is_authenticated() role = request.form.get("role") diff --git a/requirements.txt b/requirements.txt index 9c7ba99..6a700c2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ flask -hvac<1.0.0 +hvac>=1.0.0