Added null string handler.
This commit is contained in:
		
							parent
							
								
									914bad367c
								
							
						
					
					
						commit
						0541f8b4ce
					
				| @ -14,8 +14,10 @@ | ||||
| {%- set groupings = ['vrrp_script', 'vrrp_sync_group', 'vrrp_instance',  | ||||
|     'virtual_server_group', 'virtual_server', 'real_server'] -%} | ||||
| {%- macro config_entries(data, indents, carryover='') -%} | ||||
|   {%- if data is string or data is number or data is none -%} | ||||
|   {%- if data is string or data is number -%} | ||||
| {{ data|string|indent(indents, True) }}{{ '\n' }} | ||||
|   {%- elif data is none -%} | ||||
| {{ '\n' -}} | ||||
|   {%- else -%} | ||||
|     {%- if indents != 0 and not carryover -%} | ||||
| {{- " {\n" -}} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jeff Baskin
						Jeff Baskin