fix name of cmd call
This commit is contained in:
		
							parent
							
								
									def291d210
								
							
						
					
					
						commit
						26f606e634
					
				@ -13,7 +13,7 @@ events {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
http {
 | 
			
		||||
    {% if 'set_real_ips' in nginx and salt['cmdmod.retcode']('nginx -V 2>&1 | grep http_realip_module') == 0 -%}
 | 
			
		||||
    {% if 'set_real_ips' in nginx and salt['cmd.retcode']('nginx -V 2>&1 | grep http_realip_module') == 0 -%}
 | 
			
		||||
    {% for ip in nginx.get('set_real_ips', {}).get('ips', []) -%}
 | 
			
		||||
    set_real_ip_from {{ ip }};
 | 
			
		||||
    {% endfor -%}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user