mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(maint) Remove warning about missing configuration file
Previously the CLI would emit a warning about missing configuration file, but a configuration file does not appear to be a requirement, at least based on the documentation and the fact that everything can be specified directly on the command line. This commit simply removes the warning. Users will no longer get a warning when doing things like `floaty --version`, `floaty help`, and any other subcommand.
This commit is contained in:
parent
b9bb08e3c0
commit
04c73a970d
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ class Conf
|
||||||
begin
|
begin
|
||||||
conf = YAML.load_file("#{Dir.home}/.vmfloaty.yml")
|
conf = YAML.load_file("#{Dir.home}/.vmfloaty.yml")
|
||||||
rescue StandardError
|
rescue StandardError
|
||||||
FloatyLogger.warn "WARNING: There was no config file at #{Dir.home}/.vmfloaty.yml"
|
# ignore
|
||||||
end
|
end
|
||||||
conf
|
conf
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue