DMTF / Redfish-Usecase-Checkers

This is a collection of python3 tools to exercise and validate common use cases for Redfish
Other
1 stars 6 forks source link

Failed to add user #35

Closed JojoWu19 closed 4 years ago

JojoWu19 commented 4 years ago

When we run the account_management.py, we get the result with failed to add user (Base.1.6.MalformedJSON). After checking account_management.py as below:

        # Create a new user
            ...
            redfish_utilities.modify_user( redfish_obj, test_username, new_enabled = True )
            ...

Here should use new_enabled = true , right?

mraineri commented 4 years ago

No, this is the Python literal True; when it's serialized into JSON, it will get converted to true.

JojoWu19 commented 4 years ago

Yes, I also think this is not the root cause. I will create the other issue to discuss. thank you.