JasperVanDenBosch / fexpect

extension for fabric to handle prompts through pexpect
http://ilogue.com/jasper/blog/fexpect--dealing-with-prompts-in-fabric-with-pexpect/
BSD 2-Clause "Simplified" License
44 stars 13 forks source link

Dead loop with "expecting" #27

Closed Vimos closed 9 years ago

Vimos commented 9 years ago

When using "expecting", if an expect appears again, the prompt will be executed automatically. Since the added expect may appear again, prompts may execute more than one times, which cause dead loop of all the prompts.

If I want to make prompts acting in a sequence and no repeat, what may be a good practice?