New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File plugin: Separate config files doesn't allow empty stub env file #54

Closed
savelandr opened this Issue Apr 13, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@savelandr
Copy link

savelandr commented Apr 13, 2017

Having a stub environment file when putting environments in environments/<env>.yaml doesn't work if the environment is a stub and therefore the file is empty. This is because YAML.load returns false when parsing nothing. The result looks like:

/usr/local/share/gems/gems/tiller-1.0.0/lib/tiller/data/file.rb:39:in `common': undefined method `key?' for false:FalseClass (NoMethodError)
	from /usr/local/share/gems/gems/tiller-1.0.0/bin/tiller:115:in `block in <module:Tiller>'
	from /usr/local/share/gems/gems/tiller-1.0.0/bin/tiller:110:in `each'
	from /usr/local/share/gems/gems/tiller-1.0.0/bin/tiller:110:in `<module:Tiller>'
	from /usr/local/share/gems/gems/tiller-1.0.0/bin/tiller:35:in `<top (required)>'
	from /usr/local/bin/tiller:23:in `load'
	from /usr/local/bin/tiller:23:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment