Skip to content

Commit 1d44904

Browse files
pmoravecTurboTurtle
authored andcommitted
[cleaner] Use "hostname -f" in HostnamePrepper
HostnamePrepper should always be fed by FQDN to ensure domain names are recognized properly. This is important esp. when: - /etc/hosts is empty - "hostname" contains shortname only - "hostname -f" contains FQDN Resolves: #4022 Closes: #4026 Signed-off-by: Pavel Moravec <[email protected]>
1 parent 8a4cac3 commit 1d44904

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sos/cleaner/preppers/hostname.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _get_items_for_hostname(self, archive):
2929
items = []
3030
_file = 'hostname'
3131
if archive.is_sos:
32-
_file = 'sos_commands/host/hostname'
32+
_file = 'sos_commands/host/hostname_-f'
3333
elif archive.is_insights:
3434
_file = 'data/insights_commands/hostname_-f'
3535

0 commit comments

Comments
 (0)