Browse Source

network.interface: strict eol pattern matching

Fixes: #131

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
pull/132/head
Alexandru Avadanii 7 years ago
parent
commit
628461883e
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      linux/network/interface.sls

+ 2
- 2
linux/network/interface.sls View File

@@ -121,7 +121,7 @@ ovs_port_{{ interface_name }}:
ovs_port_{{ interface_name }}_line1:
file.replace:
- name: /etc/network/interfaces
- pattern: auto {{ interface_name }}
- pattern: auto {{ interface_name }}$
- repl: ""

ovs_port_{{ interface_name }}_line2:
@@ -246,7 +246,7 @@ linux_bond_interface_{{ interface_name }}:
remove_interface_{{ network }}_line1:
file.replace:
- name: /etc/network/interfaces
- pattern: auto {{ network }}
- pattern: auto {{ network }}$
- repl: ""

remove_interface_{{ network }}_line2:

Loading…
Cancel
Save