Skip to content

Commit

Permalink
Merge pull request #45 from PelionIoT/silence-curl
Browse files Browse the repository at this point in the history
generate-identity.sh - silence curl
  • Loading branch information
JanneKiiskila authored Aug 17, 2023
2 parents 3484234 + 2761b1b commit 8663905
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:<port>/status ports (snap port `8081`, edge-core only `8080` and LmP `9091`).
1. [edge-info] Removed unused files.
Expand Down
4 changes: 3 additions & 1 deletion identity-tools/generate-identity.sh
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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/^\/\///'`
Expand Down

0 comments on commit 8663905

Please sign in to comment.