lamw / lamw/vmware-scripts

Uninitialized Variable $sampleRate

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
951
Forks
504
PR merge metrics
No merged PRs in 30d

Description

Dear William,
first I'd like to thank you for the great work!

But it seems I found a minor issue in the Script:
I pulled the zip today (2015-06-03) and while testing it I noticed the following perl message:
Use of uninitialized value $sampleRate in concatenation (.) or string at ./vmwar althCheck.pl line 4775.
As far as I can see, the cause of this is, that in Line 4751 there are seven variables, but only six values to initialize them.
Obviously the following "if" doesn't match in our environment, so the missing value leaves the variable empty.
One more "N/A" fixed the problem for me.
Thanks again,
Greetings,
Thomas

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the script referenced in the warning around lines 4751 and 4775. Compare the number of variables with the values assigned in the initialization and reproduce the reported Perl warning while testing the script. Done means the missing default value is supplied and the uninitialized-value warning no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
devops
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.