build/linux/installer/scripts/tomlparser-health-config.rb
# Use the ruby structure created after config parsing to set the right values to be used as environment variables
Use the ruby structure created after config parsing to set the right values to be used as environment variables
Use the ruby structure created after config parsing to set the right values to be used as environment variables
def populateSettingValuesFromConfigMap(parsedConfig)
  begin
    if !parsedConfig.nil? && !parsedConfig[:agent_settings].nil? && !parsedConfig[:agent_settings][:health_model].nil? && !parsedConfig[:agent_settings][:health_model][:enabled].nil?
        @enable_health_model = parsedConfig[:agent_settings][:health_model][:enabled]
        puts "enable_health_model = #{@enable_health_model}"
    end
  rescue => errorStr
    puts "config::error:Exception while reading config settings for health_model enabled setting - #{errorStr}, using defaults"
    @enable_health_model = false
  end
end
def populateSettingValuesFromConfigMap ( parsedConfig ) begin if ! parsedConfig . nil? && ! parsedConfig [ :agent_settings ] . nil? && ! parsedConfig [ :agent_settings ] [ :health_model ] . nil? && ! parsedConfig [ :agent_settings ] [ :health_model ] [ :enabled ] . nil? @enable_health_model = parsedConfig [ :agent_settings ] [ :health_model ] [ :enabled ] puts "enable_health_model = #{@enable_health_model}" end rescue => errorStr puts "config::error:Exception while reading config settings for health_model enabled setting - #{errorStr}, using defaults" @enable_health_model = false end end
Use the ruby structure created after config parsing to set the right values to be used as environment variables
Use the ruby structure created after config parsing to set the right values to be used as environment variables
parsedConfig
<not_specific>