From 702877994efb83b165c82e0602e4400fe59e95ec Mon Sep 17 00:00:00 2001 From: Lin Liu Date: Tue, 7 Mar 2023 05:52:52 +0000 Subject: [PATCH] CA-364049: Tell external auth plugins to use python3 External auth plugins need to import Enum, which is removed as secureboot-certificate does not Requires it any more. To resovle this issue there are two options: * Requires python2-enum34 in xapi.spec to re-introduce the package * Update the plugins to use python3 Given python2 is going to be updated to python3, this commit fix the issue by telling plugins to use python3 explictly Signed-off-by: Lin Liu --- scripts/plugins/extauth-hook | 2 +- scripts/plugins/extauth-hook-AD.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plugins/extauth-hook b/scripts/plugins/extauth-hook index 98cdd14ff5b..3c874de6e4c 100755 --- a/scripts/plugins/extauth-hook +++ b/scripts/plugins/extauth-hook @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Plugin called by xapi whenever an external_auth_type is enabled or disabled as an # Also when a subject is added or removed. diff --git a/scripts/plugins/extauth-hook-AD.py b/scripts/plugins/extauth-hook-AD.py index f01b90d4dbd..07f5218460e 100755 --- a/scripts/plugins/extauth-hook-AD.py +++ b/scripts/plugins/extauth-hook-AD.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # extauth-hook-AD.py #