Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gmartinez95 committed Feb 22, 2023
1 parent 32eb12a commit 78e7581
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG/current/79.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[MOD] Change resolve_hostname to false for default, add the --resolve-hostname flag for host create and add --force flag to tool run to process the output of the command regardless of the return code. #79
[MOD] Change resolve_hostname to false for default, add the --resolve-hostname flag for host create and add --force flag to tool run to process the output of the command regardless of the return code. #79
2 changes: 1 addition & 1 deletion faraday_cli/shell/modules/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def create_hosts(self, args: argparse.Namespace):
self._cmd.perror(f"{e}")
else:
for _host_data in json_data:
if args.resolve:
if args.resolve_hostname:
ip, hostname = utils.get_ip_and_hostname(_host_data["ip"])
else:
ip, hostname = _host_data["ip"], _host_data["ip"]
Expand Down

0 comments on commit 78e7581

Please sign in to comment.