From 55a15dc3947269afffc45500d59c30ff11eae763 Mon Sep 17 00:00:00 2001 From: Mykhaylo Sul Date: Fri, 3 Jan 2020 10:26:24 +0200 Subject: [PATCH] ISSUE-1504: Use a bool type instead of a string in the virtual secondary config Signed-off-by: Mykhaylo Sul --- config/secondary/virtualsec.json | 4 ++-- docs/ota-client-guide/modules/ROOT/examples/virtualsec.json | 6 +++--- src/aktualizr_primary/main.cc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/secondary/virtualsec.json b/config/secondary/virtualsec.json index 7ac2a3b9a9..a2d8b3f0e4 100644 --- a/config/secondary/virtualsec.json +++ b/config/secondary/virtualsec.json @@ -1,7 +1,7 @@ { "virtual": [ { - "partial_verifying": "false", + "partial_verifying": false, "ecu_hardware_id": "demo-virtual", "full_client_dir": "storage/demo-vsec1", "ecu_private_key": "sec.private", @@ -11,7 +11,7 @@ "metadata_path": "storage/demo-vsec1/metadata" }, { - "partial_verifying": "false", + "partial_verifying": false, "ecu_hardware_id": "demo-virtual", "full_client_dir": "storage/demo-vsec2", "ecu_private_key": "sec.private", diff --git a/docs/ota-client-guide/modules/ROOT/examples/virtualsec.json b/docs/ota-client-guide/modules/ROOT/examples/virtualsec.json index 98a5871a7b..a2d8b3f0e4 100644 --- a/docs/ota-client-guide/modules/ROOT/examples/virtualsec.json +++ b/docs/ota-client-guide/modules/ROOT/examples/virtualsec.json @@ -1,7 +1,7 @@ { "virtual": [ { - "partial_verifying": "false", + "partial_verifying": false, "ecu_hardware_id": "demo-virtual", "full_client_dir": "storage/demo-vsec1", "ecu_private_key": "sec.private", @@ -11,7 +11,7 @@ "metadata_path": "storage/demo-vsec1/metadata" }, { - "partial_verifying": "false", + "partial_verifying": false, "ecu_hardware_id": "demo-virtual", "full_client_dir": "storage/demo-vsec2", "ecu_private_key": "sec.private", @@ -22,4 +22,4 @@ } ] -} \ No newline at end of file +} diff --git a/src/aktualizr_primary/main.cc b/src/aktualizr_primary/main.cc index 30590deb21..53d7a3a5e3 100644 --- a/src/aktualizr_primary/main.cc +++ b/src/aktualizr_primary/main.cc @@ -125,7 +125,7 @@ int main(int argc, char *argv[]) { try { Primary::initSecondaries(aktualizr, config.uptane.secondary_config_file); } catch (const std::exception &e) { - LOG_ERROR << "Secondary initialization failed"; + LOG_ERROR << "Secondary initialization failed: " << e.what(); if (!aktualizr.IsRegistered()) { LOG_ERROR << "Cannot provision without all secondaries present, exiting..."; return EXIT_FAILURE;