Failed to get the object of vim.host.LocalAccountManager from Retrievecontent
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
When we are trying to create a user in vcenter, trying to get object of vim.host.LocalAccountManager, we are not able to get that object and failing with error,
Trying to get all objects inside this,
_get_all_objs(content, [pyVmomi.vim.host.LocalAccountManager]))
It is failed with below error.
InvalidArgument: (vmodl.fault.InvalidArgument) {
dynamicType = <unset>,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = 'A specified parameter was not correct: type',
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) [],
invalidProperty = 'type'
}
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 reproducing the _get_all_objs(content, [pyVmomi.vim.host.LocalAccountManager]) call while creating a vCenter user and inspect why RetrieveContent rejects the type parameter. Confirm the supported way to retrieve the LocalAccountManager object and verify that the user-creation flow no longer raises InvalidArgument.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100