ginkgo-tools-batchssh 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/PKG-INFO +1 -1
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh/module_SSHwrapper.py +2 -1
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh.egg-info/PKG-INFO +1 -1
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/pyproject.toml +1 -1
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/README.md +0 -0
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh/__init__.py +0 -0
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh/moduel_convenient_tools.py +0 -0
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh/module_logger.py +0 -0
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh.egg-info/SOURCES.txt +0 -0
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh.egg-info/dependency_links.txt +0 -0
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh.egg-info/requires.txt +0 -0
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh.egg-info/top_level.txt +0 -0
- {ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/setup.cfg +0 -0
|
@@ -10,6 +10,7 @@ from typing import Optional
|
|
|
10
10
|
from . import module_logger
|
|
11
11
|
import os
|
|
12
12
|
import stat
|
|
13
|
+
from pathlib import PurePosixPath, Path
|
|
13
14
|
|
|
14
15
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
15
16
|
|
|
@@ -536,7 +537,7 @@ class SSHWrapper:
|
|
|
536
537
|
logger.debug(f"命令封装执行前流程,触发sudo切换执行操作")
|
|
537
538
|
# 执行转移和变更操作
|
|
538
539
|
if transfer_directory:
|
|
539
|
-
sudoers_shell_path =
|
|
540
|
+
sudoers_shell_path = PurePosixPath(transfer_directory, file_name)
|
|
540
541
|
logger.debug(f"命令封装执行前流程,触发sudo切换执行操作,指定转移目录为:{transfer_directory}")
|
|
541
542
|
else:
|
|
542
543
|
if sudo_to_user == "root":sudoers_shell_path = f"/root/{file_name}"
|
|
File without changes
|
{ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{ginkgo_tools_batchssh-0.1.1 → ginkgo_tools_batchssh-0.1.2}/ginkgo_tools_batchssh/module_logger.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|