]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix Cloud::Hostname configuration flag
authorEric Bollengier <eric@baculasystems.com>
Mon, 30 Nov 2020 09:59:10 +0000 (10:59 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:57 +0000 (09:02 +0100)
The flag Hostname is mandatory for S3 and File. It is not
for other cloud providers, but we support only these two
for the moment.

bacula/src/stored/stored_conf.c

index 12f87a254ce6dae3159caf6e06214f4ac0f6e9b4..118b0eb39ba7b5e0b129d8d572cce80a378a944b 100644 (file)
@@ -209,7 +209,7 @@ static RES_ITEM cloud_items[] = {
    {"Name",              store_name,      ITEM(res_cloud.hdr.name),        0, ITEM_REQUIRED, 0},
    {"Description",       store_str,       ITEM(res_cloud.hdr.desc),        0, 0, 0},
    {"Driver",            store_cloud_driver, ITEM(res_cloud.driver_type), 0, ITEM_REQUIRED, 0},
-   {"HostName",          store_strname,ITEM(res_cloud.host_name), 0, 0, 0},
+   {"HostName",          store_strname,ITEM(res_cloud.host_name), 0, 0, ITEM_REQUIRED}, // Only S3/File
    {"BucketName",        store_strname,ITEM(res_cloud.bucket_name), 0, ITEM_REQUIRED, 0},
    {"Region",            store_strname,ITEM(res_cloud.region), 0, 0, 0},
    {"AccessKey",         store_strname,ITEM(res_cloud.access_key), 0, 0, 0},