Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
thusser committed Aug 9, 2024
1 parent 946715a commit 1dbfdcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyobs/cli/pyobsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def status(self, print_json: bool = False) -> None:
for p in modules:
print(("[X]" if p in configs else "[ ]") + " " + ("[X]" if p in running else "[ ]") + " " + p)

def list(self, **kwargs) -> None:
def list(self) -> None:
configs = [self._module(r) for r in self._configs]
print("\n".join(configs))

Expand Down Expand Up @@ -249,9 +249,9 @@ def main() -> None:

# init daemon
daemon = PyobsDaemon(
os.path.join(args.path, args.config_path),
os.path.join(args.path, args.run_path),
os.path.join(args.path, args.log_path),
str(os.path.join(args.path, args.config_path)),
str(os.path.join(args.path, args.run_path)),
str(os.path.join(args.path, args.log_path)),
log_level=args.log_level,
chuid=args.chuid,
start_stop_daemon=args.start_stop_daemon,
Expand Down

0 comments on commit 1dbfdcd

Please sign in to comment.