feat: extend enterprise gateway policies billing protocols and operations
This commit is contained in:
1 parent
1528b71882
commit
af43947b5d
67 files changed
+1822
-69
No files matched your search
@@ -30,6 +30,10 @@ def execute(command, capture=False, data=None):
|
||||
# shell stdin. This is especially important when deploy.py is invoked from
|
||||
# an SSH heredoc; only an explicit data payload may be sent to a process.
|
||||
options = {"input": data} if data is not None else {"stdin": subprocess.DEVNULL}
|
||||
if command[:2] == ["docker", "compose"] and "--env-file" in command:
|
||||
environment = os.environ.copy()
|
||||
environment["MOYI_RUNTIME_ENV_FILE"] = str(Path(command[command.index("--env-file") + 1]).resolve())
|
||||
options["env"] = environment
|
||||
result = subprocess.run(command, cwd=HERE, capture_output=capture,
|
||||
text=True, encoding="utf-8", errors="replace", **options)
|
||||
if result.returncode:
|
||||
|
||||
Reference in new issue
Block a user