BTW seems as if its something to do with the handle because if I put in the IP, user, and password into the handle for the logout it works so I'll just update my playbook to have the login credentials on the logout as well.
Thanks On Sunday, January 8, 2017 at 2:08:07 PM UTC-5, brian hopkins wrote: > > Hello Everyone, > > I'm working on my first Ansible module to interact with UCS and will be > hopefully creating more of these to do new builds of UCS servers. I have > the following code already https://github.com/btotharye/ansible-ucs and > the login process is working fine but for some reason I'm having issues > with the logout. I'm not sure what is going on yet but as far as the UCS > Python SDK goes UcsHandle.logout() should work and as far as I can tell I'm > getting the handle right but having issues. > > If anyone could offer links or suggestions on how to debug the logout part > that is failing I would appreciate it, right now I'm hitting line 19 of the > logout script ucs_logout.py and its generating the module.fail_json message > but I'm not sure whats causing the exception. Login process is working > fine and I would think it would just be a matter of passing in the handle > and logging it out but for some reason that isn't working. > > Documentation to the UCS Python SDK: > https://ciscoucs.github.io/ucsmsdk_docs/ucsmsdk_ug.html#getting-started > > Thanks > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9fe05af1-315f-478b-bf4b-121e34dad0c1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
