fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] abort_on_prompts behavior


From: Valerie Ishida
Subject: [Fab-user] abort_on_prompts behavior
Date: Fri, 19 Aug 2011 15:32:22 -0700

I tried the following code...

with fabric.api.settings(host_string="address@hidden", user="testuser", password="testuser", abort_on_prompts=True):
    fabric.api.run("ls /tmp")

Fatal error: Needed to prompt, but abort-on-prompts was set to True!

Aborting.

But if I run...

with fabric.api.settings(host_string="address@hidden", user="testuser", password="testuser"):
    fabric.api.run("ls /tmp")

It runs fine and does not prompt.

I am trying to write a non-interactive build script, so I need something like abort_on_prompts, but it need to not abort with error when correct login credentials are provided.

Help?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]