From 48f70544105c63c3f684bf102a4f63d4e096024f Mon Sep 17 00:00:00 2001 From: jerry-553 <1007388420@qq.com> Date: Tue, 7 May 2024 10:10:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=91=E6=B5=8B=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=9C=A8=E5=AE=89=E8=A3=85=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E4=BB=A5sudo=E6=9D=83=E9=99=90=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/deploy/compatibility_test_deploy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/install_dependency/src/deploy/compatibility_test_deploy.py b/tools/install_dependency/src/deploy/compatibility_test_deploy.py index 7d08479..e5bc0f4 100644 --- a/tools/install_dependency/src/deploy/compatibility_test_deploy.py +++ b/tools/install_dependency/src/deploy/compatibility_test_deploy.py @@ -3,4 +3,8 @@ from deploy.deploy_base import DeployBase class CompatibilityDeploy(DeployBase): - pass \ No newline at end of file + def __init__(self, component, + ip, user, pkey, password): + super(CompatibilityDeploy, self).__init__(component, + ip, user, pkey, password, hook_before_upload_fn=None, hook_after_install_fn=None) + self.sudo = True -- Gitee