backend.py: GetInstanceListForHypervisor
authorHelga Velroyen <helgav@google.com>
Wed, 5 Jun 2013 09:20:02 +0000 (11:20 +0200)
committerHelga Velroyen <helgav@google.com>
Wed, 12 Jun 2013 07:17:25 +0000 (09:17 +0200)
commit2bff19285eac72449b438fd6e2ac5ca1206d5dfe
treef2054dd7a18761079d37c1c154d5af06d8965751
parentfac83f8af4e41bd4d5c758e3c829e87cbe00ffe9
backend.py: GetInstanceListForHypervisor

In same cases, the call 'GetInstanceList' is only done for
one hypervisor. In those cases, it is more convenient to
not provide the full collection of hypervisor parameters
for all hypervisors, but only the ones for this hypervisor.
This patch factors out this particular case.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/backend.py