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

Fix bug in hive-dev-install.sh #3896

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

s-fairchild
Copy link
Collaborator

hack/util.sh: line 14: would: unbound variable occurs in it's current state.

Which issue this PR addresses:

Fixes ARO-11090

What this PR does / why we need it:

I have removed the erroneous -n causing the log message to be read as a variable.
-n is being passed as a the first argument to log, which then causes the msg string to be used for argument two, stack_level. Since argument two expects a variable, it then fails with an unbound variable error.

Example of the error in it's current state.

./hack/hive/hive-dev-install.sh 
main: enter hive installation
main: hive is already installed in namespace hive
hack/util.sh: line 14: would: unbound variable

Test plan for issue:

I've tested this script locally with my changes to ensure it functions correctly.

Is there any documentation that needs to be updated for this PR?

No.

How do you know this will function as expected in production?

Locally testing showed removing this allows the script to function.

hack/util.sh: line 14: would: unbound variable occurs in it's current state.
@s-fairchild
Copy link
Collaborator Author

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kimorris27
Copy link
Contributor

/azp run ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kimorris27 kimorris27 merged commit 0362cb5 into master Oct 9, 2024
18 checks passed
@kimorris27 kimorris27 deleted the s-fairchild/ARO-11090-hive-dev-install-bug branch October 9, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chainsaw Pull requests or issues owned by Team Chainsaw
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants