From d414e4ae37ab5056abb72f2ccafd1d21495317a7 Mon Sep 17 00:00:00 2001 From: "David D. Riddle" Date: Mon, 28 Oct 2024 10:39:26 -0500 Subject: [PATCH] FIXUP --- Makefile | 2 ++ src/awscli_login/__init__.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 107cce39..fcfefee4 100644 --- a/Makefile +++ b/Makefile @@ -153,6 +153,8 @@ python-exec-path: aws_debug: export PATH:=$(PWD)/venv.v2/$(VBIN):$(PATH) aws_debug: venv.v2 + aws configure set plugins.login awscli_login + aws configure set plugins.cli_legacy_plugin_path $$(pip show awscli-login | sed -nr 's/^Location: (.*)/\1/p') aws login --aws-debug integration-tests-v2: export AWSCLI_TEST_V2:=1 diff --git a/src/awscli_login/__init__.py b/src/awscli_login/__init__.py index 6adad5f7..b76a4e37 100644 --- a/src/awscli_login/__init__.py +++ b/src/awscli_login/__init__.py @@ -86,6 +86,8 @@ def _run_main(self, args: Namespace, parsed_globals): if args.aws_debug: version_info() return 0 + else: + del args.aws_debug cmd = ["aws-login", f"--{self.NAME}", tmp.name] if self._session.profile: