API: Added test for inspect_flake
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import argparse
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import shlex
|
||||
import subprocess
|
||||
@@ -11,6 +12,8 @@ from ..errors import ClanError
|
||||
from ..nix import nix_build, nix_config, nix_shell
|
||||
from ..ssh import parse_deployment_address
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def build_upload_script(machine: str, clan_dir: Path) -> str:
|
||||
config = nix_config()
|
||||
@@ -67,6 +70,8 @@ def run_upload_secrets(
|
||||
)
|
||||
|
||||
if proc.returncode != 0:
|
||||
log.error("Stdout: %s", proc.stdout)
|
||||
log.error("Stderr: %s", proc.stderr)
|
||||
raise ClanError("failed to upload secrets")
|
||||
|
||||
h = parse_deployment_address(flake_attr, target)
|
||||
|
||||
Reference in New Issue
Block a user