title: No hosts found: Fabric
body: <p>when I run my python code it is  asking for host.</p>
  
  <blockquote>
    <p>No hosts found. Please specify (single) host string for connection:</p>
  </blockquote>
  
  <p>I have the following code:</p>
  
  <pre><code>from fabric.api import *
  from fabric.contrib.console import confirm
  
  env.hosts = [ 'ipaddress' ]
  
  def remoteRun():
      print "ENV %s" %(env.hosts)
      out = run('uname -r')
      print "Output %s"%(out)
  
  remoteRun();
  </code></pre>
  
  <p>I even tried running fab with -H option and I am getting the same message. I'm using Ubuntu 10.10 any help is appreciated. Btw I am a newbie in Python.</p>