Skip to content

Commit

Permalink
Merge branch 'tkt_16_list_host_error' into 'dev'
Browse files Browse the repository at this point in the history
fix error in list_host

Closes #16

See merge request faradaysec/faraday-cli!21
  • Loading branch information
Nicolas Rebagliati committed Jan 4, 2021
2 parents de9becb + 08e2269 commit 9942f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG/current/fix_error_in_list_host.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix error in list_host command
2 changes: 1 addition & 1 deletion faraday_cli/shell/modules/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_data(workspace_name, port_number):
else:
if args.json_output:
self._cmd.poutput(json.dumps(hosts["rows"], indent=4))
elif args.ip:
elif args.list_ip:
for host in hosts["rows"]:
self._cmd.poutput(host["value"]["ip"])
else:
Expand Down

0 comments on commit 9942f05

Please sign in to comment.