forked from ungleich-public/cdist
		
	Remove annoying warnings
Those warnings don't have any specail meaning and usage. Resolve #825.
This commit is contained in:
		
					parent
					
						
							
								7074f9c395
							
						
					
				
			
			
				commit
				
					
						077989e8fd
					
				
			
		
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -45,8 +45,6 @@ def resolve_target_host_name(host, family=0):
 | 
			
		|||
        log.debug("derived host_name for host \"{}\": {}".format(
 | 
			
		||||
            host, host_name))
 | 
			
		||||
    except (socket.gaierror, socket.herror) as e:
 | 
			
		||||
        log.warning("Could not derive host_name for {}"
 | 
			
		||||
                    ", $host_name will be empty. Error is: {}".format(host, e))
 | 
			
		||||
        # in case of error provide empty value
 | 
			
		||||
        host_name = ''
 | 
			
		||||
    return host_name
 | 
			
		||||
| 
						 | 
				
			
			@ -59,8 +57,6 @@ def resolve_target_fqdn(host):
 | 
			
		|||
        log.debug("derived host_fqdn for host \"{}\": {}".format(
 | 
			
		||||
            host, host_fqdn))
 | 
			
		||||
    except socket.herror as e:
 | 
			
		||||
        log.warning("Could not derive host_fqdn for {}"
 | 
			
		||||
                    ", $host_fqdn will be empty. Error is: {}".format(host, e))
 | 
			
		||||
        # in case of error provide empty value
 | 
			
		||||
        host_fqdn = ''
 | 
			
		||||
    return host_fqdn
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue