Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1505 from advancedtelematic/fix/ISSUE-1504/virtua…
Browse files Browse the repository at this point in the history
…l-config-use-bool-type

ISSUE-1504: Virtual Secondary config
  • Loading branch information
pattivacek authored Jan 3, 2020
2 parents e871cc7 + 55a15dc commit 3eeccc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config/secondary/virtualsec.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions docs/ota-client-guide/modules/ROOT/examples/virtualsec.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -22,4 +22,4 @@

}
]
}
}
2 changes: 1 addition & 1 deletion src/aktualizr_primary/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3eeccc7

Please sign in to comment.