Skip to content

Commit 7f40215

Browse files
authored
Parameter passing is corrected
Signed-off-by: Aarush289 <[email protected]>
1 parent 8565db6 commit 7f40215

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nettacker/core/hostcheck.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ def resolve_quick(
9595
if host.endswith("."):
9696
host = host[:-1]
9797

98-
if not valid_hostname(host):
99-
return False, None
100-
101-
if "." not in host and not allow_single_label:
98+
if not valid_hostname(host, allow_single_label=allow_single_label):
10299
return False, None
103100

104101
def _call(use_ai_addrconfig: bool):

0 commit comments

Comments
 (0)