title: Python Fabric - No hosts found. Please specify (single) host string for connection:
body: <p>How do I get No hosts found. Please specify (single) host string for connection: ?</p>
  
  <p>How to a resolve with fabric? </p>
  
  <pre><code>def bootstrap():
      host = 'ec2-54-xxx.xxx.xxx.compute-1.amazonaws.com'
      env.hosts = [host]
      env.user = "ubuntu"
      env.key_filename = "/home/ubuntu/omg.pem"
  
  &gt; command run
  &gt;&gt; fab bootstrap
  &gt; No hosts found. Please specify (single) host string for connection: 
  </code></pre>