Backport/2.5/37847Fix interfaces_file to accept allow-* (#37847 (#40008)

* Fix interfaces_file to accept allow-* (#37847)

(cherry picked from commit 5ac41ee8d8)

* interfaces-file
pull/40019/head
John R Barker 7 years ago committed by GitHub
parent 928e1e8f99
commit 6a46e3a44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- Fix interfaces_file to support `allow-` https://github.com/ansible/ansible/pull/37847

@ -225,7 +225,7 @@ def read_interfaces_lines(module, line_strings):
elif words[0] == "auto": elif words[0] == "auto":
lines.append(lineDict(line)) lines.append(lineDict(line))
currently_processing = "NONE" currently_processing = "NONE"
elif words[0] == "allow-": elif words[0].startswith("allow-"):
lines.append(lineDict(line)) lines.append(lineDict(line))
currently_processing = "NONE" currently_processing = "NONE"
elif words[0] == "no-auto-down": elif words[0] == "no-auto-down":

Loading…
Cancel
Save