From 1e3ef346c94edf552cf8c59546527e2fca50ae98 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 31 Oct 2013 16:12:30 +0100 Subject: [PATCH] Set default values for IdoMysqlConnection config attributes. --- components/db_ido_mysql/idomysqlconnection.ti | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/components/db_ido_mysql/idomysqlconnection.ti b/components/db_ido_mysql/idomysqlconnection.ti index 202a20af8..d84f6e329 100644 --- a/components/db_ido_mysql/idomysqlconnection.ti +++ b/components/db_ido_mysql/idomysqlconnection.ti @@ -5,11 +5,21 @@ namespace icinga class IdoMysqlConnection : DbConnection { - [config] String host; - [config] int port; - [config] String user; - [config] String password; - [config] String database; + [config] String host { + default {{{ return "localhost"; }}} + }; + [config] int port { + default {{{ return 3306; }}} + }; + [config] String user { + default {{{ return "icinga"; }}} + }; + [config] String password { + default {{{ return "icinga"; }}} + }; + [config] String database { + default {{{ return "icinga"; }}} + }; [config] String instance_name { default {{{ return "default"; }}} }; -- 2.40.0