gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: fix status checking


From: gnunet
Subject: [libeufin] branch master updated: fix status checking
Date: Mon, 02 Aug 2021 23:21:03 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 8c1a641  fix status checking
8c1a641 is described below

commit 8c1a641ddc106e70258a7038a0f00a7a65105f12
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Aug 2 23:20:58 2021 +0200

    fix status checking
---
 cli/bin/libeufin-cli | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli
index 4378ae1..dcd8abd 100755
--- a/cli/bin/libeufin-cli
+++ b/cli/bin/libeufin-cli
@@ -92,7 +92,7 @@ def list_users(obj):
         exit(1)
 
     tell_user(resp, withsuccess=True)
-    check_response_status(resp.status_code)
+    check_response_status(resp)
 
 @users.command(help="Change user's password")
 @click.option(
@@ -118,7 +118,7 @@ def change_password(obj, new_password):
         exit(1)
 
     tell_user(resp, withsuccess=True)
-    check_response_status(resp.status_code)
+    check_response_status(resp)
 
 
 @users.command("create", help="Create a new user")
@@ -149,7 +149,7 @@ def create_user(obj, username, password):
         exit(1)
 
     print(resp.content.decode("utf-8"))
-    check_response_status(resp.status_code)
+    check_response_status(resp)
 
 
 @permissions.command("list", help="Show permissions")
@@ -164,7 +164,7 @@ def list_permission(obj):
         exit(1)
 
     print(resp.content.decode("utf-8"))
-    check_response_status(resp.status_code)
+    check_response_status(resp)
 
 @permissions.command("grant", help="Grant permission to a subject")
 @click.pass_obj
@@ -194,7 +194,7 @@ def grant_permission(obj, subject_type, subject_id, 
resource_type, resource_id,
         exit(1)
 
     print(resp.content.decode("utf-8"))
-    check_response_status(resp.status_code)
+    check_response_status(resp)
 
 @permissions.command("revoke", help="Revoke permission from a subject")
 @click.pass_obj
@@ -224,7 +224,7 @@ def revoke_permission(obj, subject_type, subject_id, 
resource_type, resource_id,
         exit(1)
 
     print(resp.content.decode("utf-8"))
-    check_response_status(resp.status_code)
+    check_response_status(resp)
 
 
 @cli.group()

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]