This is a FYI, since I am sure someone else will end up having this same issue and I randomly figured out what was going on and how to fix it. I did not find anything with searching.
I recently moved all of my playbooks from using the ROLE to the COLLECTION, along with that the new version 3.1.0, is using pyaoscx v2.
If you run a playbook and receive this error: " The error was: AttributeError: 'Device' object has no attribute 'configuration' "
At least what fixed this for me was to correctly install of the requirements.txt! Another point of showing that slowing down and reading the directions fully and correctly would have saved me a lot of time. So, on to the fix:
cd ~/.ansible/collections/ansible_collections/arubanetworks/aoscx # This should be the location the collection was install to, if it differs on your system go there.
ansible-galaxy install -r requirements.yml
python3 -m pip install -r requirements.txt
I hope this helps someone in the future.
------------------------------
Don Rhodes
------------------------------