From b5d23d58fd497e88605fd8a15470b7caadc255be Mon Sep 17 00:00:00 2001 From: Andrey Vertiprahov Date: Wed, 21 Aug 2019 09:08:18 +0500 Subject: [PATCH] Fix Huawei.VRP "Are you sure" pattern_more. --- sa/profiles/Huawei/VRP/profile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sa/profiles/Huawei/VRP/profile.py b/sa/profiles/Huawei/VRP/profile.py index d4cab89a2e..512581bb90 100644 --- a/sa/profiles/Huawei/VRP/profile.py +++ b/sa/profiles/Huawei/VRP/profile.py @@ -26,10 +26,11 @@ class Profile(BaseProfile): (r"^ ---- More ----\s*", " "), (r"[Cc]ontinue?\S+", "y\n\r"), (r"[Cc]onfirm?\S+", "y\n\r"), - (r" [Aa]re you sure?\S+", "y\n\r"), + (r"\s*[Aa]re you sure?\S+", "y\n\r"), (r"^Delete flash:", "y\n\r"), (r"^Squeeze flash:", "y\n\r"), (r"^The password needs to be changed\. Change now\? \[Y\/N\]\:", "n\n\r"), + (r"unchanged press the enter key\)\:", "\n"), ] pattern_prompt = ( r"^[<#\[](~|\*|)(?P[a-zA-Z0-9-_\\\.\[\(/`'\"\|\s:,=]+)" -- GitLab