Handle cases where normal commit operation throws a prompt (#62132)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
parent
4e6270750a
commit
f1766457a2
1 changed files with 5 additions and 0 deletions
|
@ -191,6 +191,11 @@ class Cliconf(CliconfBase):
|
|||
cmd_obj['command'] = 'commit label {0}'.format(label)
|
||||
else:
|
||||
cmd_obj['command'] = 'commit show-error'
|
||||
# In some cases even a normal commit, i.e., !replace,
|
||||
# throws a prompt and we need to handle it before
|
||||
# proceeding further
|
||||
cmd_obj['prompt'] = '(C|c)onfirm'
|
||||
cmd_obj['answer'] = 'y'
|
||||
|
||||
self.send_command(**cmd_obj)
|
||||
|
||||
|
|
Loading…
Reference in a new issue