{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/49419","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/49419/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/49419/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/49419/events","html_url":"https://github.com/ansible/ansible/issues/49419","id":386561769,"node_id":"MDU6SXNzdWUzODY1NjE3Njk=","number":49419,"title":"azure_rm_subnet fails when existing subnet had route_table","user":{"login":"yfried","id":5310525,"node_id":"MDQ6VXNlcjUzMTA1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/5310525?v=4","gravatar_id":"","url":"https://api.github.com/users/yfried","html_url":"https://github.com/yfried","followers_url":"https://api.github.com/users/yfried/followers","following_url":"https://api.github.com/users/yfried/following{/other_user}","gists_url":"https://api.github.com/users/yfried/gists{/gist_id}","starred_url":"https://api.github.com/users/yfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yfried/subscriptions","organizations_url":"https://api.github.com/users/yfried/orgs","repos_url":"https://api.github.com/users/yfried/repos","events_url":"https://api.github.com/users/yfried/events{/privacy}","received_events_url":"https://api.github.com/users/yfried/received_events","type":"User","site_admin":false},"labels":[{"id":947190508,"node_id":"MDU6TGFiZWw5NDcxOTA1MDg=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.7","name":"affects_2.7","color":"ededed","default":false},{"id":379680468,"node_id":"MDU6TGFiZWwzNzk2ODA0Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/azure","name":"azure","color":"c5def5","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":61528803,"node_id":"MDU6TGFiZWw2MTUyODgwMw==","url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"c7def8","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":503572087,"node_id":"MDU6TGFiZWw1MDM1NzIwODc=","url":"https://api.github.com/repos/ansible/ansible/labels/needs_triage","name":"needs_triage","color":"0e8a16","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false},{"id":942378949,"node_id":"MDU6TGFiZWw5NDIzNzg5NDk=","url":"https://api.github.com/repos/ansible/ansible/labels/traceback","name":"traceback","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-02T13:53:00Z","updated_at":"2018-12-11T02:42:49Z","closed_at":"2018-12-10T02:30:24Z","author_association":"NONE","body":"<!--- Verify first that your issue is not already reported on GitHub -->\r\n<!--- Also test if the latest release and devel branch are affected too -->\r\n<!--- Complete *all* sections as described, this form is processed automatically -->\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly below -->\r\n\r\n##### ISSUE TYPE\r\n- Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Write the short name of the module, plugin, task or feature below -->\r\n* azure_rm_subnet\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes -->\r\n```paste below\r\nansible 2.7.4\r\n  config file = None\r\n  configured module search path = [u'$HOME/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = $HOME/.virtualenvs/ansible/local/lib/python2.7/site-packages/ansible\r\n  executable location = $HOME/.virtualenvs/ansible/bin/ansible\r\n  python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]\r\n\r\n```\r\n\r\n##### CONFIGURATION\r\n<!--- Paste verbatim output from \"ansible-config dump --only-changed\" between quotes -->\r\n```paste below\r\n\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->\r\n\r\nTry to execute the module against an existing subnet with route_table defined\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n      - azure_rm_subnet:\r\n          name: \"{{ network.subnet }}\"\r\n          virtual_network_name: \"{{ network.vnet }}\"\r\n          resource_group: \"{{ network.group }}\"\r\n          address_prefix_cidr: \"{{ network.cidr }}\"\r\n# make sure subnet exists and has a routing table defined\r\n\r\n```\r\n\r\n<!--- HINT: You can paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- Describe what you expected to happen when running the steps above -->\r\nSubnet should not be created. `changed` value depends on whether defined `route_table` matches the existing route_table (probably should modify existing route_table if not.)\r\n\r\n\r\n\r\n##### ACTUAL RESULTS\r\n<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes -->\r\n```paste below\r\nfatal: [localhost]: FAILED! => {\r\n    \"changed\": false, \r\n    \"module_stderr\": \"No handlers could be found for logger \\\"keyring.backend\\\"\\nTraceback (most recent call last):\\n  File \\\"/home/yfried/.ansible/tmp/ansible-tmp-1543756742.69-22661400925495/AnsiballZ_azure_rm_subnet.py\\\", line 261, in <module>\\n    _ansiballz_main()\\n  File \\\"/home/yfried/.ansible/tmp/ansible-tmp-1543756742.69-22661400925495/AnsiballZ_azure_rm_subnet.py\\\", line 251, in _ansiballz_main\\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\\n  File \\\"/home/yfried/.ansible/tmp/ansible-tmp-1543756742.69-22661400925495/AnsiballZ_azure_rm_subnet.py\\\", line 119, in invoke_module\\n    imp.load_module('__main__', mod, module, MOD_DESC)\\n  File \\\"/tmp/ansible_azure_rm_subnet_payload_aYNzSG/__main__.py\\\", line 348, in <module>\\n  File \\\"/tmp/ansible_azure_rm_subnet_payload_aYNzSG/__main__.py\\\", line 344, in main\\n  File \\\"/tmp/ansible_azure_rm_subnet_payload_aYNzSG/__main__.py\\\", line 208, in __init__\\n  File \\\"/tmp/ansible_azure_rm_subnet_payload_aYNzSG/ansible_azure_rm_subnet_payload.zip/ansible/module_utils/azure_rm_common.py\\\", line 308, in __init__\\n  File \\\"/tmp/ansible_azure_rm_subnet_payload_aYNzSG/__main__.py\\\", line 259, in exec_module\\nUnboundLocalError: local variable 'route_table' referenced before assignment\\n\", \r\n    \"module_stdout\": \"\", \r\n    \"msg\": \"MODULE FAILURE\\nSee stdout/stderr for the exact error\", \r\n    \"rc\": 1\r\n}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/446051980","html_url":"https://github.com/ansible/ansible/issues/49419#issuecomment-446051980","issue_url":"https://api.github.com/repos/ansible/ansible/issues/49419","id":446051980,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjA1MTk4MA==","user":{"login":"yuwzho","id":14213176,"node_id":"MDQ6VXNlcjE0MjEzMTc2","avatar_url":"https://avatars0.githubusercontent.com/u/14213176?v=4","gravatar_id":"","url":"https://api.github.com/users/yuwzho","html_url":"https://github.com/yuwzho","followers_url":"https://api.github.com/users/yuwzho/followers","following_url":"https://api.github.com/users/yuwzho/following{/other_user}","gists_url":"https://api.github.com/users/yuwzho/gists{/gist_id}","starred_url":"https://api.github.com/users/yuwzho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuwzho/subscriptions","organizations_url":"https://api.github.com/users/yuwzho/orgs","repos_url":"https://api.github.com/users/yuwzho/repos","events_url":"https://api.github.com/users/yuwzho/events{/privacy}","received_events_url":"https://api.github.com/users/yuwzho/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T02:42:49Z","updated_at":"2018-12-11T02:42:49Z","author_association":"CONTRIBUTOR","body":"The fix will be available from v2.7.5"}}
{"actor":{"display_login":"yuwzho"}}