diff --git a/CHANGELOG/current/fix_error_in_list_host.md b/CHANGELOG/current/fix_error_in_list_host.md new file mode 100644 index 0000000..f36505e --- /dev/null +++ b/CHANGELOG/current/fix_error_in_list_host.md @@ -0,0 +1 @@ +Fix error in list_host command diff --git a/faraday_cli/shell/modules/host.py b/faraday_cli/shell/modules/host.py index d1e44e9..30e7bc5 100644 --- a/faraday_cli/shell/modules/host.py +++ b/faraday_cli/shell/modules/host.py @@ -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: