xenapi: Fix download_handler fallback
Bug #1210659 reported by
Rick Harris
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Rick Harris |
Bug Description
In order to make image-download a bit more robust, we attempt to download from a preferred handler and if that fails, we fall back to a default handler.
If the preferred handler *is* the default-handler, then we should just raise the exception instead of retrying.
The existing code was checking to see with whether the handler *instance* compared as equal to the default-handler *instance*. Since the two objects are instantiated separately, they'll be different objects, so never compare as equal.
The correct check is to see if the handler is an instance of the default handler's class.
Changed in nova: | |
milestone: | none → havana-rc1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-rc1 → 2013.2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/41201
Review: https:/