vmware / vmware/pyvmomi

Failed to get the object of vim.host.LocalAccountManager from Retrievecontent

Open
#677 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

Open the contributing guide

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.