fix bug
This commit is contained in:
@@ -31,8 +31,9 @@ class LvmOperations:
|
||||
else:
|
||||
result = subprocess.run(
|
||||
["sudo"] + command_list if root_privilege else command_list,
|
||||
capture_output=True, text=True, check=True,
|
||||
input=input_data
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', check=True,
|
||||
input=input_data,
|
||||
stdin=subprocess.PIPE if input_data else None
|
||||
)
|
||||
stdout = result.stdout
|
||||
stderr = result.stderr
|
||||
|
||||
Reference in New Issue
Block a user