1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix interfaces_file to accept allow-* (#37847)

This commit is contained in:
Ed Schaller 2018-05-11 06:47:06 -06:00 committed by John R Barker
parent c3c30440f8
commit 5ac41ee8d8

View file

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