Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Enforce users to use insights" #738

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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