diff --git a/CHANGELOG/current/79.md b/CHANGELOG/current/79.md index d32576c..c07a9cd 100644 --- a/CHANGELOG/current/79.md +++ b/CHANGELOG/current/79.md @@ -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 \ No newline at end of file +[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 diff --git a/faraday_cli/shell/modules/host.py b/faraday_cli/shell/modules/host.py index e2d0f7b..4be494f 100644 --- a/faraday_cli/shell/modules/host.py +++ b/faraday_cli/shell/modules/host.py @@ -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"]