Skip to content

Commit dfd3cf0

Browse files
MB-61292: Fix "subprocess" is not defined error
near subprocess.TimeoutExpired Change-Id: I9e2d5aa6cc571dbacc1708d2e9dbb68a93af0f1d Reviewed-on: https://review.couchbase.org/c/ns_server/+/221180 Reviewed-by: Navdeep S Boparai <[email protected]> Tested-by: Timofey Barmin <[email protected]> Well-Formed: Build Bot <[email protected]>
1 parent ae31f68 commit dfd3cf0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pylib/gosecrets_client_lib.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import sys
1212
import os
1313
import traceback
14-
from subprocess import Popen, PIPE
14+
import subprocess
1515
import base64
1616
from installed_script_helpers import basedir, find_binary
1717
import json
@@ -33,8 +33,9 @@ def read_keys(key_specs, config_path, gosecrets_path=None,
3333

3434
debug(f'Using {gosecrets_path} with config {config_path}')
3535

36-
proc = Popen([gosecrets_path, '--config', config_path],
37-
stdin=PIPE, stdout=PIPE, stderr=PIPE)
36+
proc = subprocess.Popen([gosecrets_path, '--config', config_path],
37+
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
38+
stderr=subprocess.PIPE)
3839

3940
try:
4041
send_command(proc, 'init', password)

0 commit comments

Comments
 (0)