fix bug
This commit is contained in:
@@ -39,11 +39,12 @@ class LvmOperations:
|
||||
try:
|
||||
result = subprocess.run(
|
||||
command_list,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=True,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
encoding='utf-8',
|
||||
input=input_data
|
||||
check=True,
|
||||
input=input_data,
|
||||
stdin=subprocess.PIPE if input_data else None
|
||||
)
|
||||
logger.info(f"命令成功: {full_cmd_str}")
|
||||
return True, result.stdout.strip(), result.stderr.strip()
|
||||
|
||||
Reference in New Issue
Block a user