Skip to content

Commit

Permalink
Merge pull request #738 from javipolo/revert_insights_check
Browse files Browse the repository at this point in the history
Revert "Enforce users to use insights"
  • Loading branch information
Gregory-Pereira authored Aug 7, 2024
2 parents 102dc01 + 8c95438 commit 198a13f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
21 changes: 0 additions & 21 deletions training/ilab-wrapper/ilab
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 0 additions & 21 deletions training/nvidia-bootc/duplicated/ilab-wrapper/ilab
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 198a13f

Please sign in to comment.