pvl/rrd/hosts.py
changeset 428 956b3d4918bb
parent 425 4e828d47421a
equal deleted inserted replaced
427:7dd5a33aa145 428:956b3d4918bb
    52             if '=' in host :
    52             if '=' in host :
    53                 host, node = host.split('=')
    53                 host, node = host.split('=')
    54             else :
    54             else :
    55                 node = host
    55                 node = host
    56 
    56 
       
    57             if '@' in host :
       
    58                 host, host_domain = host.split('@')
       
    59             else:
       
    60                 host_domain = domain
       
    61 
    57             if '@' in node :
    62             if '@' in node :
    58                 node, node_domain = node.split('@')
    63                 node, node_domain = node.split('@')
    59             else:
    64             else:
    60                 # as for collectd host
       
    61                 node_domain = domain
    65                 node_domain = domain
    62             
    66             
    63             # host has domain in collectd?
    67             # host has domain in collectd?
    64             if domain :
    68             if host_domain :
    65                 host = hostjoin(host, domain)
    69                 host = hostjoin(host, host_domain)
    66 
    70 
    67         if not parts :
    71         if not parts :
    68             # keep host for following lines
    72             # keep host for following lines
    69             continue
    73             continue
    70 
    74