summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5e349a)
raw | patch | inline | side by side (parent: b5e349a)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 20 Feb 2013 21:52:38 +0000 (22:52 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 20 Feb 2013 21:52:38 +0000 (22:52 +0100) |
src/backend/puppet-storeconfigs.c | patch | blob | history |
index 1129a5a1f352f40d6894df6827a1e87b2226d3de..f03380871a1de9dc38c733cea763f592f7624c2f 100644 (file)
return -1;
client = SDB_OBJ_WRAPPER(user_data)->data;
+ if (sdb_dbi_client_check_conn(client)) {
+ fprintf(stderr, "puppet storeconfigs backend: "
+ "Connection to storeconfigs DB failed.\n");
+ return -1;
+ }
+
if (sdb_dbi_exec_query(client, "SELECT name, updated_at FROM hosts;",
sdb_puppet_stcfg_get_hosts, NULL, /* #columns = */ 2,
/* col types = */ SDB_TYPE_STRING, SDB_TYPE_DATETIME)) {