[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] @roles failing
From: |
Thomas Bikeev |
Subject: |
[Fab-user] @roles failing |
Date: |
Fri, 04 Sep 2009 15:49:36 +0200 |
Hi list,
I am trying to repeat documentation example on @roles decorator but seem to
fail ...
Any clues? Cheers, Thomas
1 from fabric.state import env
2 from fabric.decorators import roles
3
4 env.webserver = ['www1', 'www2']
5 env.dbserver = ['db1']
6
7 @roles('webserver', 'dbserver')
8 def my_func():
9 pass
(~/Projects/temp: $) fab my_func
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/fabric/main.py", line 443, in main
File "build/bdist.linux-x86_64/egg/fabric/main.py", line 331, in get_hosts
File "build/bdist.linux-x86_64/egg/fabric/main.py", line 310, in _merge
KeyError: 'webserver'
- [Fab-user] @roles failing,
Thomas Bikeev <=