Skip to content

Commit

Permalink
debug command
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxi0830 committed Jan 14, 2025
1 parent 63b0a40 commit 7f58290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions llama_stack/cli/stack/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ def _run_stack_build_command(self, args: argparse.Namespace) -> None:
build_config = BuildConfig(
name=name, image_type=image_type, distribution_spec=distribution_spec
)
self._run_stack_build_command_from_build_config(
build_config,
)
self._run_stack_build_command_from_build_config(build_config)
return

with open(args.config, "r") as f:
Expand All @@ -190,9 +188,7 @@ def _run_stack_build_command(self, args: argparse.Namespace) -> None:
except Exception as e:
self.parser.error(f"Could not parse config file {args.config}: {e}")
return
self._run_stack_build_command_from_build_config(
build_config,
)
self._run_stack_build_command_from_build_config(build_config)

def _generate_run_config(self, build_config: BuildConfig, build_dir: Path) -> None:
"""
Expand Down
1 change: 0 additions & 1 deletion llama_stack/distribution/utils/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def sigint_handler(signum, frame):
# Set up the signal handler
signal.signal(signal.SIGINT, sigint_handler)

# Only modify terminal settings if we're actually in a terminal
new_settings = termios.tcgetattr(sys.stdin)
new_settings[3] = new_settings[3] & ~termios.ECHO # Disable echo
new_settings[3] = new_settings[3] & ~termios.ICANON # Disable canonical mode
Expand Down

0 comments on commit 7f58290

Please sign in to comment.