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/^\/\///'`