mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
fixes to get the new secrets passing through stdin to work in my environment
This commit is contained in:
@@ -47,6 +47,7 @@ import jsonschema
|
||||
import jsontokens
|
||||
import subprocess
|
||||
import platform
|
||||
import shutil
|
||||
from jsonschema import ValidationError
|
||||
from schemas import *
|
||||
|
||||
@@ -4252,7 +4253,7 @@ def local_api_action(command, password=None, api_pass=None, config_dir=blockstac
|
||||
|
||||
api_stdin_buf = blockstack_constants.serialize_secrets()
|
||||
|
||||
p = subprocess.Popen(argv, cwd=config_dir, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True, env=env)
|
||||
p = subprocess.Popen(argv, cwd=config_dir, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True, env=env)
|
||||
out, err = p.communicate(input=api_stdin_buf)
|
||||
res = p.wait()
|
||||
if res != 0:
|
||||
|
||||
Reference in New Issue
Block a user