saltstack/salt — pull request #1867 by borgstrom (2012-08-22 19:29:07+00:00)
Title: Minidom fixups to prevent Exceptions

I'm not sure when this broke but I do seem to recall this working at some point previously, but it looks like some changes have broken a number of the virt functions that deal with minidom `NamedNodeMap`s

```
[#167]: salt-call virt.vm_info ibolapp1.fatboxes.com
Traceback (most recent call last):
File "/usr/bin/salt-call", line 11, in
salt_call()
File "/usr/lib/python2.6/dist-packages/salt/scripts.py", line 70, in salt_call
client.run()
File "/usr/lib/python2.6/dist-packages/salt/cli/__init__.py", line 792, in run
caller.run()
File "/usr/lib/python2.6/dist-packages/salt/cli/caller.py", line 112, in run
ret = self.call()
File "/usr/lib/python2.6/dist-packages/salt/cli/caller.py", line 46, in call
ret['return'] = self.minion.functions[fun](*args, **kw)
File "/usr/lib/python2.6/dist-packages/salt/modules/virt.py", line 163, in vm_info
info[vm_] = _info(vm_)
File "/usr/lib/python2.6/dist-packages/salt/modules/virt.py", line 156, in _info
'disks': get_disks(vm_),
File "/usr/lib/python2.6/dist-packages/salt/modules/virt.py", line 304, in get_disks
if 'dev' in list(target.attributes) and 'file' in list(source.attributes):
File "/usr/lib/python2.6/xml/dom/minidom.py", line 530, in __getitem__
return self._attrs[attname_or_tuple]
KeyError: 0
```