From 5ac41ee8d840f79e701f98499b3cd0793367fe54 Mon Sep 17 00:00:00 2001 From: Ed Schaller Date: Fri, 11 May 2018 06:47:06 -0600 Subject: [PATCH] Fix interfaces_file to accept allow-* (#37847) --- lib/ansible/modules/system/interfaces_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/interfaces_file.py b/lib/ansible/modules/system/interfaces_file.py index 9b25cb4a04..389dcb770e 100755 --- a/lib/ansible/modules/system/interfaces_file.py +++ b/lib/ansible/modules/system/interfaces_file.py @@ -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":