table_set_ersatz_string(table, TABLE_ERSATZ_UNSET);
+ if (!isempty(i->hostname) &&
+ !streq_ptr(i->hostname, i->static_hostname)) {
+ r = table_add_many(table,
+ TABLE_FIELD, "Transient hostname",
+ TABLE_STRING, i->hostname);
+ if (r < 0)
+ return table_log_add_error(r);
+ }
+
r = table_add_many(table,
TABLE_FIELD, "Static hostname",
TABLE_STRING, i->static_hostname);
return table_log_add_error(r);
}
- if (!isempty(i->hostname) &&
- !streq_ptr(i->hostname, i->static_hostname)) {
- r = table_add_many(table,
- TABLE_FIELD, "Transient hostname",
- TABLE_STRING, i->hostname);
- if (r < 0)
- return table_log_add_error(r);
- }
-
if (!isempty(i->icon_name)) {
r = table_add_many(table,
TABLE_FIELD, "Icon name",