From 43fc30b152f7775802be6338374f6aa5099b7e39 Mon Sep 17 00:00:00 2001 From: Octavio Simone <70800577+unbekanntes-pferd@users.noreply.github.com> Date: Tue, 19 Jul 2022 18:34:01 +0200 Subject: [PATCH 1/2] fixed open client bug on auth ls --- dccmd/main/auth/__init__.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/dccmd/main/auth/__init__.py b/dccmd/main/auth/__init__.py index b50c16b..554ca10 100644 --- a/dccmd/main/auth/__init__.py +++ b/dccmd/main/auth/__init__.py @@ -7,36 +7,23 @@ # std import import sys import asyncio -import logging # external imports import typer -import httpx -from dracoon import DRACOON, OAuth2ConnectionType -from dracoon.client import DRACOONConnection -from dracoon.errors import HTTPUnauthorizedError, DRACOONHttpError, HTTPNotFoundError # internal imports from .credentials import ( get_credentials, - store_credentials, delete_credentials, - get_client_credentials, - store_client_credentials, - delete_client_credentials, get_crypto_credentials, - store_crypto_credentials, delete_crypto_credentials, ) from .util import login from ..util import ( format_error_message, format_success_message, - graceful_exit, parse_base_url, ) -from ..models.errors import DCClientParseError - auth_app = typer.Typer() @@ -104,5 +91,6 @@ async def _ls(): typer.echo( f"Username: {dracoon.user_info.userName} ({dracoon.user_info.firstName} {dracoon.user_info.lastName})" ) - + await dracoon.logout() + asyncio.run(_ls()) From fdf40f87253f4cd5f861d7e5c410ae5613c69a91 Mon Sep 17 00:00:00 2001 From: Octavio Simone <70800577+unbekanntes-pferd@users.noreply.github.com> Date: Tue, 19 Jul 2022 18:36:54 +0200 Subject: [PATCH 2/2] version bump --- dccmd/__init__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dccmd/__init__.py b/dccmd/__init__.py index 33153a0..bda63ff 100644 --- a/dccmd/__init__.py +++ b/dccmd/__init__.py @@ -4,7 +4,7 @@ """ -__version__ = "0.3.4" +__version__ = "0.3.5" # std imports import sys diff --git a/pyproject.toml b/pyproject.toml index 74648f9..ed63e36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dccmd" -version = "0.3.4" +version = "0.3.5" description = "DRACOON Commander – CLI client for DRACOON Cloud (dracoon.com)" authors = ["Octavio Simone <70800577+unbekanntes-pferd@users.noreply.github.com>"] license = "Apache-2.0"