From 2761b1b2c5da457a87392a78c2aab9c8646abf2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20Kiiskil=C3=A4?= Date: Wed, 16 Aug 2023 23:36:59 +0300 Subject: [PATCH] generate-identity.sh - silence curl This generates noise in the logs, we better silence curl. Add also Izuma as copyright holder. --- CHANGELOG.md | 3 +++ identity-tools/generate-identity.sh | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a13adfa..e974f09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## Izuma Edge utilities 2.2.1 +1. [identity-tool] Silence `curl` to have less noise in logs. + ## Izuma Edge utilities 2.2.0 1. [edge-info] Add support for different localhost:/status ports (snap port `8081`, edge-core only `8080` and LmP `9091`). 1. [edge-info] Removed unused files. diff --git a/identity-tools/generate-identity.sh b/identity-tools/generate-identity.sh index 32025c7..febbe19 100755 --- a/identity-tools/generate-identity.sh +++ b/identity-tools/generate-identity.sh @@ -1,6 +1,8 @@ #!/bin/bash # Copyright (c) 2018, Arm Limited and affiliates. +# Copyright (c) 2023, Izuma Networks +# # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -35,7 +37,7 @@ function jsonValue() { } getEdgeStatus() { - [[ -z "$edge_status" ]] && edge_status=$(curl http://localhost:${EDGE_CORE_PORT}/status) + [[ -z "$edge_status" ]] && edge_status=$(curl -s http://localhost:${EDGE_CORE_PORT}/status) OU=`echo $edge_status | jq -r '."account-id"'` internalid=`echo $edge_status | jq -r '."internal-id"'` lwm2mserveruri=`echo $edge_status | jq -r '."lwm2m-server-uri"' | cut -d':' -f 2 | sed 's/^\/\///'`