fabric/fabric — Issue #480: "Role" can't be used as argument to task
Author: mitchellh
Created: 2011-11-17 18:18:16+00:00
State: open

Hello,

Not sure if this is a bug or "working as intended" but it is proving as annoying to me. I use fabric to launch some nodes, and nodes have roles associated with them. So I tried to do the following

```python
def launch(role=None):
pass
```

And I tried to execute it as the following:

```
fab launch:role=foo
```

And the error turns into:

```
(env)launchy master → fab instance.create:east,east-large,role=foo,name_prefix=test

Fatal error: The following specified roles do not exist:
foo
```

I think `role` should be a usable argument to a task.