Skip to content

AttributeError: 'iDRACCredsMgmt' object has no attribute 'create_user' #41

Description

@etigui

QwikContext

Client version (where I run the code):

  • Python3.9 (with omsdk: 1.2.509)
  • Rocky Linux release 8.5

Target server: Dell EMC R720xd

Details

I found in the doc the way to create a user, but it's not working for some reason. Here is the code I'm using:

from omsdk.sdkcreds import UserCredentials
from omsdk.sdkinfra import sdkinfra

sd = sdkinfra()
sd.importPath()

idrac = sd.find_driver("<ip>", UserCredentials("<username>","<password>"))
if idrac:
  idrac.user_mgr.create_user("<new_username>", "<new_password>", "<user_priv>")
  idrac.disconnect()
else:
  print("Cannot connect to the server")

Here is the output:

(.venv) $ python3.9 main.py 
Traceback (most recent call last):
  File "main.py", line 9, in <module>
    idrac.user_mgr.create_user("<new_username>", "<new_password>", "<user_priv>")
AttributeError: 'iDRACCredsMgmt' object has no attribute 'create_user'

Repro Steps

Run the code above

Impact

N/A

NeedBy

As soon as possible

Severity

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions