[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] env.hosts
From: |
John Keyes |
Subject: |
[Fab-user] env.hosts |
Date: |
Mon, 30 Aug 2010 12:43:56 +0100 |
I ran the following command using Fabric 0.9.1:
def doit():
env.user = 'keyes'
env.hosts = ['example.com']
run('ls')
and got the following output:
No hosts found. Please specify (single) host string for connection:
I changed the command to:
def doit():
env.user = 'keyes'
env.host_string = 'example.com'
run('ls')
and the directory listing was printed to the console.
The documentation always refers to the env.hosts setting but I cannot
get that to work. Have I missed something?
Thanks,
-John
- [Fab-user] env.hosts,
John Keyes <=