aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-10-02 15:42:55 +0200
committerFlorian Bruhin <me@the-compiler.org>2018-10-02 15:42:55 +0200
commit8fe5dcff188deba32c50ede1cc81deb07ba8fc18 (patch)
treefb3f75eab2f6b4ab50dd4b63e182dc978fb04029
parent4caa19cccb6aa3045b897abac2b7c8d28d55687f (diff)
downloadhsrvpn-8fe5dcff188deba32c50ede1cc81deb07ba8fc18.tar.gz
hsrvpn-8fe5dcff188deba32c50ede1cc81deb07ba8fc18.zip
hsrvpn-getsecret: Get text properly
-rwxr-xr-xhsrvpn-getsecret2
1 files changed, 1 insertions, 1 deletions
diff --git a/hsrvpn-getsecret b/hsrvpn-getsecret
index e3bd603..a055cb6 100755
--- a/hsrvpn-getsecret
+++ b/hsrvpn-getsecret
@@ -41,5 +41,5 @@ tree = ElementTree.fromstring(response.text)
assert tree.find('Version').text == '3.6'
assert tree.find('Result').text == 'PASS'
-secret = tree.find('Id')
+secret = tree.find('Id').text
keyring.set_password('hsrvpn-gettokens', user, secret)