{"action":"closed","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/26372","labels_url":"https://api.github.com/repos/saltstack/salt/issues/26372/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/26372/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/26372/events","html_url":"https://github.com/saltstack/salt/issues/26372","id":101387353,"number":26372,"title":"salt-cloud VMware driver fails with KeyErrors if some VM are disconnected","user":{"login":"evle-zzz","id":13830812,"avatar_url":"https://avatars.githubusercontent.com/u/13830812?v=3","gravatar_id":"","url":"https://api.github.com/users/evle-zzz","html_url":"https://github.com/evle-zzz","followers_url":"https://api.github.com/users/evle-zzz/followers","following_url":"https://api.github.com/users/evle-zzz/following{/other_user}","gists_url":"https://api.github.com/users/evle-zzz/gists{/gist_id}","starred_url":"https://api.github.com/users/evle-zzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evle-zzz/subscriptions","organizations_url":"https://api.github.com/users/evle-zzz/orgs","repos_url":"https://api.github.com/users/evle-zzz/repos","events_url":"https://api.github.com/users/evle-zzz/events{/privacy}","received_events_url":"https://api.github.com/users/evle-zzz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/RIoT","name":"RIoT","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-Cloud","name":"Salt-Cloud","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2477,"closed_issues":2505,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-08-22T23:14:11Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-08-17T10:10:42Z","updated_at":"2015-08-22T23:14:11Z","closed_at":"2015-08-22T23:14:11Z","body":"If VM is in disconnected state (for example when host that runs them gets disconnected from vCenter) \r\nsalt-cloud -f avail_images <provider> fails (Salt: 2015.8.0rc3-1202-gc34c6b9)\r\n\r\n```\r\n[ERROR   ] Failed to get the output of 'vmware.avail_images()': 'config.template'\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/salt/cloud/__init__.py\", line 842, in image_list\r\n    data[alias][driver] = self.clouds[fun]()\r\n  File \"/usr/local/lib/python2.7/dist-packages/salt/cloud/clouds/vmware.py\", line 1672, in avail_images\r\n    if vm[\"config.template\"]:\r\nKeyError: 'config.template'\r\n[DEBUG   ] LazyLoaded nested.output\r\n```\r\n\r\n@nmadhok\r\n"}}