Skip to content

Commit

Permalink
... more review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ndokos committed Jun 30, 2023
1 parent 8bb4e4f commit b649481
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/pbench/cli/agent/commands/tools/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ def execute(self) -> int:
self.logger.error(msg)
return 1

elif tool_info:
found = self.print_results(tool_info, self.context.with_option)
if not found:
msg = "No tools found"
if self.context.group:
msg += f' in group "{self.context.group[0]}"'
self.logger.warn(msg)
else:
if tool_info:
found = self.print_results(tool_info, self.context.with_option)
if not found:
msg = "No tools found"
if self.context.group:
msg += f' in group "{self.context.group[0]}"'
self.logger.warn(msg)
else:
self.logger.warn("No tool groups found")
return 0
self.logger.warn("No tool groups found")

return 0


def _group_option(f):
Expand Down

0 comments on commit b649481

Please sign in to comment.