mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
#81 - Check if parsed_config has :graphite key to avoid NilClass errors
This commit is contained in:
parent
6758da7f5c
commit
ec34c3edb3
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ module Vmpooler
|
||||||
parsed_config[:config]['vm_checktime'] ||= 15
|
parsed_config[:config]['vm_checktime'] ||= 15
|
||||||
parsed_config[:config]['vm_lifetime'] ||= 24
|
parsed_config[:config]['vm_lifetime'] ||= 24
|
||||||
|
|
||||||
if parsed_config[:graphite]['server']
|
if parsed_config.has_key?(:graphite)
|
||||||
parsed_config[:graphite]['prefix'] ||= 'vmpooler'
|
parsed_config[:graphite]['prefix'] ||= 'vmpooler'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue