Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

pennyworrth host list thows error when no hosts.yaml exsits #40

Open
greygoo opened this issue Jan 19, 2015 · 0 comments
Open

pennyworrth host list thows error when no hosts.yaml exsits #40

greygoo opened this issue Jan 19, 2015 · 0 comments

Comments

@greygoo
Copy link
Member

greygoo commented Jan 19, 2015

When handling hosts with pennyworth a config file contianing their information is required. if that is missing peenyworth currently exists very ungraceful:

./bin/pennyworth host list
Pennyworth experienced an unexpected error. Please file a bug report at https://github.com/SUSE/pennyworth/issues/new.
/usr/src/chuller/pennyworth/lib/host_config.rb:61:in `read': No such file or directory @ rb_sysopen - /suse/chuller/.pennyworth/hosts.yaml (Errno::ENOENT)

It would be better to catch this condition and tell the user what to do to get the config file into place

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant