Using @hosts or @roles decorator meddle with fab -d taskname output #1032

Closed
shaftoe opened this Issue Dec 3, 2013 · 1 comment

Projects

None yet

3 participants

@shaftoe
shaftoe commented Dec 3, 2013

It's a small bug, but still...

alex~$ cat fabfile.py
from fabric.api import *

@task
@roles('fake_role')
def broken_task(my_argument=True):
'''Arguments is ok only if @roles is missing'''
local('Hello world!')

alex~$ fab -d broken_task
Displaying detailed information for task 'broken_task':

Arguments is ok only if @roles is missing
Arguments:

alex~$ sed -i '/fake_role/d' fabfile.py

alex~$ fab -d broken_task
Displaying detailed information for task 'broken_task':

Arguments is ok only if @roles is missing
Arguments: my_argument=True
@akitada
Contributor
akitada commented Dec 23, 2013

This is a duplicate of #971

@mvk mvk pushed a commit to mvk/fabric that referenced this issue Mar 4, 2015
Max Kovgan WrappedCallableTask.__details__() support for multi-decorated objects
 - fixes fabric/fabric #971
 - fixes fabric/fabric #1032
68601ae
@bitprophet bitprophet closed this Mar 9, 2015
@bitprophet bitprophet added a commit that referenced this issue Mar 9, 2015
@bitprophet Max Kovgan + bitprophet WrappedCallableTask.__details__() support for multi-decorated objects
 - fixes fabric/fabric #971
 - fixes fabric/fabric #1032
ada80be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment