ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

ansible_module_azure_rm_virtualmachine incompatible with Python3 #5923

Closed synthomat closed 7 years ago

synthomat commented 7 years ago

Greetings!

https://github.com/ansible/ansible-modules-core/blob/00911a75ad6635834b6d28eef41f197b2f73c381/cloud/azure/azure_rm_virtualmachine.py#L556

This line causes Python3 to fail with this exception:

or key in self.module_arg_spec.keys() + ['tags']:
TypeError: unsupported operand type(s) for +: 'dict_keys' and 'list'

Can this be fixed by wrapping self.module_arg_spec.keys() in list(…)?

EDIT: Sorry, did't pay attention; Please delete this ticket

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.