Greetings again.

ReturnVal = fabric.operations.put(local_path="foo1.txt")

>From the description in the doc, I would have expected that if the
file foo1.txt didn't exist on the local system, ReturnVal.failed would
be ["foo1.txt"]. Instead, fabric throws an exception:
. . .
  File "/Library/Python/2.7/site-packages/fabric/operations.py", line
425, in put
    raise ValueError(err)
ValueError: 'foo1.txt' is not a valid local path or glob.

Is there a fabric-y (fabric-ic?) way to handle the local file not
existing other than wrapping the call in try/except?

--Paul Hoffman

_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to