id&ddlmZGddeZy)) SoSPrepperceZdZdZdZdZy)HostnamePrepperaw Prepper for providing domain and hostname information to the hostname mapping. The items from hostname sources are handled manually via the _get_items method, rather than passing the file directly, as the parser does not know what hostnames or domains to match on initially. This will also populate the regex_items list with local short names. hostnamec~g}d}|jrd}n|jrd}|j|}|r|dk7r|jd}t |dkDr5|j |d|j dj|dt |dkDr3dj|d d}|j |j|j |j|jd }|jD]}|jd sd|vr|jdd} | D]O} t | jddk(r|j dj| ?|j | Q|jjD]} |j | |S) Nrzsos_commands/host/hostnamez"data/insights_commands/hostname_-f localhost.rz etc/hosts#)is_sos is_insightsget_file_contentsplitlenappend regex_itemsaddjoinstrip splitlines startswithoptsdomains) selfarchiveitems_filecontentr top_domain_hostslinehostlnhostdomains ?/usr/lib/python3/dist-packages/sos/cleaner/preppers/hostname.py_get_items_for_hostnamez'HostnamePrepper._get_items_for_hostnames >>0E  8E**51 w+-mmC(G7|a WQZ(  ,00'!*>7|a!XXgbcl3  Z--/0 LL )))+6%%' 'Ds#{d':ZZ\!"%F 'tzz#'1,$$Z044T:LL&  '  'ii'' !F LL  ! N)__name__ __module__ __qualname____doc__namer(r)r'rrs  D#r)rN)sos.cleaner.preppersrrr/r)r'r1s,1j1r)