Code

Replaced sdb_store_<type> with sdb_plugin_store_<type>.
[sysdb.git] / src / plugins / backend / facter.cc
index 98f7f57f18b30c23f0c56e889aa4e924900fcf75..e5561868f9d52647a8a93a298863bbf6a1454981 100644 (file)
@@ -57,7 +57,7 @@ fact_iter(std::string const &k, facter::facts::value const *v)
                return true;
 
        sdb_data_t value = { SDB_TYPE_STRING, { .string = str } };
-       sdb_store_attribute(hostname, k.c_str(), &value, now);
+       sdb_plugin_store_attribute(hostname, k.c_str(), &value, now);
        return true;
 } /* fact_iter */
 
@@ -83,7 +83,7 @@ extern "C" {
                std::string s = ss.str();
                hostname = s.c_str();
 
-               sdb_store_host(hostname, now);
+               sdb_plugin_store_host(hostname, now);
                facts.each(fact_iter);
                sdb_log(SDB_LOG_DEBUG, "facter backend: Processed %zu facts "
                                "for host '%s'", facts.size(), hostname);