Skip to content

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

@shaftoe

Description

@shaftoe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions