terra-ops / terra-cli

The Terra Command Line Interface
http://terra.readthedocs.org
GNU General Public License v2.0
48 stars 17 forks source link

Running environment:enable on a non-existent env causes fatal problems in ~/.terra/terra #78

Open jlyon opened 8 years ago

jlyon commented 8 years ago

I seem to be having issues cloning repos occasionally #79.

After I do this, I will instinctively run

terra e:e drupal local

Which will try to run docker build and will write this to the ~/.terra/terra

        environments:
            '':
                url: 'http://localhost:32782'
                name: null                                                                                                                          

Any future terra commands give a fatal error until I manually edit~/.terra/terra .

  [Exception]                                                                                                                        
  There is an error with your configuration: The child node "path" at path "project.apps.popline.environments." must be configured.                                                                                                                                    

Ideally, we should check to see that the environment exists before enabling it.

jlyon commented 8 years ago

This also happens if you're typing too fast, ie

 terra e:e ui local