Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
Ignore upgrade service uuid error
Browse files Browse the repository at this point in the history
(cherry picked from commit efeaf26)
  • Loading branch information
rancher-sy-bot authored and niusmallnan committed Feb 11, 2019
1 parent f1ca662 commit dcbc6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/01-base/os-subscriber
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ __read_policy() {

__report_activity() {
arch=`uname -m`
uuid=`cat /sys/class/dmi/id/product_uuid`
uuid=`cat /sys/class/dmi/id/product_uuid || true`
release=`ros -v | awk '{print $2}'`
response=`wget --server-response ${gateway_address}/report --header 'Accept: application/json' --header 'Content-type: application/json' --header "arch: $arch" --header "uuid: $uuid" --header "release: $release" 2>&1 | awk '/^ HTTP/{print $2}'`
if [ $response -ge 200 -a $response -le 300 ]; then
Expand Down

0 comments on commit dcbc6c4

Please sign in to comment.