forked from ungleich-public/cdist
		
	add --onchange to __line
This commit is contained in:
		
					parent
					
						
							
								59bff81735
							
						
					
				
			
			
				commit
				
					
						0f6fe4764b
					
				
			
		
					 3 changed files with 7 additions and 0 deletions
				
			
		|  | @ -122,3 +122,7 @@ END { | ||||||
| ' "$file" > "\$tmpfile" | ' "$file" > "\$tmpfile" | ||||||
| mv -f "\$tmpfile" "$file" | mv -f "\$tmpfile" "$file" | ||||||
| DONE | DONE | ||||||
|  | 
 | ||||||
|  | if [ -f "$__object/parameter/onchange" ]; then | ||||||
|  |    cat "$__object/parameter/onchange" | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | @ -46,6 +46,8 @@ regex | ||||||
| state | state | ||||||
|     'present' or 'absent', defaults to 'present' |     'present' or 'absent', defaults to 'present' | ||||||
| 
 | 
 | ||||||
|  | onchange | ||||||
|  |     The code to run if line is added, removed or updated. | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| BOOLEAN PARAMETERS | BOOLEAN PARAMETERS | ||||||
|  |  | ||||||
|  | @ -4,3 +4,4 @@ file | ||||||
| line | line | ||||||
| regex | regex | ||||||
| state | state | ||||||
|  | onchange | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue