Handle cases where normal commit operation throws a prompt (#62132)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
pull/62198/head
Nilashish Chakraborty 5 years ago committed by GitHub
parent 4e6270750a
commit f1766457a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save