Date: Wed, 21 Aug 2024 02:59:37 GMT From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 602d71fcad42 - main - sysutils/azure-agent: Fix run with python 3.10+ Message-ID: <202408210259.47L2xbee096972@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=602d71fcad4232f54aca4bacac6426636a61687c commit 602d71fcad4232f54aca4bacac6426636a61687c Author: Li-Wen Hsu <lwhsu@FreeBSD.org> AuthorDate: 2024-08-21 02:58:25 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2024-08-21 02:58:25 +0000 sysutils/azure-agent: Fix run with python 3.10+ Approved by: maintainer (implicitly) Sponsored by: The FreeBSD Foundation --- sysutils/azure-agent/Makefile | 1 + .../files/patch-azurelinuxagent_common_utils_textutil.py | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/sysutils/azure-agent/Makefile b/sysutils/azure-agent/Makefile index 787a272579ef..d87378886662 100644 --- a/sysutils/azure-agent/Makefile +++ b/sysutils/azure-agent/Makefile @@ -1,5 +1,6 @@ PORTNAME= azure-agent PORTVERSION= 2.8.0.11 +PORTREVISION= 1 DISTVERSIONPREFIX= v CATEGORIES= sysutils diff --git a/sysutils/azure-agent/files/patch-azurelinuxagent_common_utils_textutil.py b/sysutils/azure-agent/files/patch-azurelinuxagent_common_utils_textutil.py new file mode 100644 index 000000000000..259f5a052c59 --- /dev/null +++ b/sysutils/azure-agent/files/patch-azurelinuxagent_common_utils_textutil.py @@ -0,0 +1,11 @@ +--- azurelinuxagent/common/utils/textutil.py.orig 2024-08-20 23:23:16 UTC ++++ azurelinuxagent/common/utils/textutil.py +@@ -445,7 +445,7 @@ def format_exception(exception): + if tb is None or (sys.version_info[0] == 2 and e != exception): + msg += "[Traceback not available]" + else: +- msg += ''.join(traceback.format_exception(etype=type(exception), value=exception, tb=tb)) ++ msg += ''.join(traceback.format_exception(type(exception), value=exception, tb=tb)) + + return msg +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408210259.47L2xbee096972>