开发者

fabric keyword argument error

I'm running fabric to deploy my django app. I'm issuing the following command:

run('cd $(path); mkdir releases; mkdir shared; mkdir packages;', fail='ignore')

but i get an error for this:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/fabric/main.py", line 419, in main
    commands[name](*args, **kwargs)
  File "/home/davidh/django/fabfile.py", li开发者_如何学Pythonne 34, in setup
    run('cd $(path); mkdir releases; mkdir shared; mkdir packages;', fail='ignore')
  File "/usr/lib/pymodules/python2.6/fabric/network.py", line 382, in host_prompting_wrapper
    return func(*args, **kwargs)
TypeError: run() got an unexpected keyword argument 'fail'

any ideas? do i need to import something extra for using 'fail'? thx


run doesn't take a fail command: http://docs.fabfile.org/0.9.3/api/core/operations.html#fabric.operations.run

Perhaps you mean with settings(warn_only=True):: http://docs.fabfile.org/0.9.3/api/core/context_managers.html#fabric.context_managers.settings

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜