From: Eric Bollengier Date: Mon, 29 Nov 2021 10:05:48 +0000 (+0100) Subject: Update list medata usage message X-Git-Tag: Beta-15.0.0~751 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=602bee6b0ac865d67ac5bf28d93bc2cd2ca60211;p=thirdparty%2Fbacula.git Update list medata usage message --- diff --git a/bacula/src/cats/cats.c b/bacula/src/cats/cats.c index 8cef8a602..5bacb6c5e 100644 --- a/bacula/src/cats/cats.c +++ b/bacula/src/cats/cats.c @@ -676,6 +676,25 @@ void META_DBR::get_all_keys(POOLMEM **where) } } +bool META_DBR::check() +{ + if (!Type[0]) { + bsnprintf(errmsg, sizeof(errmsg), _("Type is not set")); + return false; + } + + if (!Owner[0]) { + bsnprintf(errmsg, sizeof(errmsg), _("Owner is not set")); + return false; + } + + if (!Tenant[0]) { + bsnprintf(errmsg, sizeof(errmsg), _("Tenant not set")); + return false; + } + return true; +} + void META_DBR::create_db_filter(JCR *jcr, BDB *db, POOLMEM **where) { const char *prefix; diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index a2f6f7382..83fdf7ef8 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -138,8 +138,9 @@ static struct cmdstruct commands[] = { /* C "\tevents [type= | limit= | order= | days= | start= | end= |\n" "\t\t source= | code= | type= ]\n" "\tobjects [jobid= client= type= | category= | status= | limit= | order= ]\n" - "\tmetadata type= [jobid= client= order= limit= orderby=