From 8c954388587ad1222d6fa61c30337c1d719a8cbe Mon Sep 17 00:00:00 2001 From: Javi Polo Date: Wed, 7 Aug 2024 18:27:02 +0200 Subject: [PATCH] Revert "Enforce users to use insights" This reverts commit d11890afb062a05876ca919c026d6874329ae58a. Signed-off-by: Javi Polo --- training/ilab-wrapper/ilab | 21 ------------------- .../nvidia-bootc/duplicated/ilab-wrapper/ilab | 21 ------------------- 2 files changed, 42 deletions(-) diff --git a/training/ilab-wrapper/ilab b/training/ilab-wrapper/ilab index 009de17a..3b2bf40e 100755 --- a/training/ilab-wrapper/ilab +++ b/training/ilab-wrapper/ilab @@ -25,27 +25,6 @@ IMAGE_NAME="__REPLACE_IMAGE_NAME__" ENTRYPOINT="ilab" PARAMS=("$@") -check_insights(){ - if [ -f /etc/ilab-skip-insights ]; then - return - fi - if [ -f /etc/insights-client/machine-id ]; then - return - fi - cat << EOF -Error: Host Not Registered with Red Hat Insights - -It appears that this host has not been registered with the Insights client -Please refer to the documentation for instructions on how to complete the registration process - -For more information, visit -https://gitlab.cee.redhat.com/red-hat-enterprise-linux-ai-documentation/rhelai_v1.1/-/blob/main/building_environment/setting_up_accounts.adoc -EOF - exit 1 -} - -check_insights - if [[ -n "$ILAB_HOME" ]]; then HOME="$ILAB_HOME" fi diff --git a/training/nvidia-bootc/duplicated/ilab-wrapper/ilab b/training/nvidia-bootc/duplicated/ilab-wrapper/ilab index 009de17a..3b2bf40e 100755 --- a/training/nvidia-bootc/duplicated/ilab-wrapper/ilab +++ b/training/nvidia-bootc/duplicated/ilab-wrapper/ilab @@ -25,27 +25,6 @@ IMAGE_NAME="__REPLACE_IMAGE_NAME__" ENTRYPOINT="ilab" PARAMS=("$@") -check_insights(){ - if [ -f /etc/ilab-skip-insights ]; then - return - fi - if [ -f /etc/insights-client/machine-id ]; then - return - fi - cat << EOF -Error: Host Not Registered with Red Hat Insights - -It appears that this host has not been registered with the Insights client -Please refer to the documentation for instructions on how to complete the registration process - -For more information, visit -https://gitlab.cee.redhat.com/red-hat-enterprise-linux-ai-documentation/rhelai_v1.1/-/blob/main/building_environment/setting_up_accounts.adoc -EOF - exit 1 -} - -check_insights - if [[ -n "$ILAB_HOME" ]]; then HOME="$ILAB_HOME" fi