dell / dell/omsdk

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

Open
#41 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
63
Forks
22
PR merge metrics
No merged PRs in 30d

Description

# 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](https://github.com/dell/omsdk/blob/devel/docs/idrac.rst?plain=1#L1001) the way to create a user, but it's not working for some reason. Here is the code I'm using:
```python
from omsdk.sdkcreds import UserCredentials
from omsdk.sdkinfra import sdkinfra

sd = sdkinfra()
sd.importPath()

idrac = sd.find_driver("", UserCredentials("",""))
if idrac:
idrac.user_mgr.create_user("", "", "")
idrac.disconnect()
else:
print("Cannot connect to the server")
```
Here is the output:
```bash
(.venv) $ python3.9 main.py
Traceback (most recent call last):
File "main.py", line 9, in
idrac.user_mgr.create_user("", "", "")
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.