__eq__ method in VmomiSupport does not work if you compare it Str
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I use objects as key in a dictionary to see if I already used that object and good all the required informations ( eg specific attributes ). The current implementation does not work as str has no _moId method.
This is fixed in pull request #339.
Could you please merge this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the eq implementation in VmomiSupport and review pull request #339, which the issue identifies as the proposed fix. Verify comparisons between VmomiSupport objects and str values, including the dictionary-key use case, and confirm the existing tests or expected behavior cover that comparison.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 20/100