Merge lp:~george-edison55/charm-helpers/fix-fetch-handler into lp:charm-helpers
Status: | Merged |
---|---|
Merged at revision: | 586 |
Proposed branch: | lp:~george-edison55/charm-helpers/fix-fetch-handler |
Merge into: | lp:charm-helpers |
Diff against target: |
22 lines (+2/-5) 1 file modified
charmhelpers/fetch/__init__.py (+2/-5) |
To merge this branch: | bzr merge lp:~george-edison55/charm-helpers/fix-fetch-handler |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+273941@code.launchpad.net |
Description of the change
charmhelpers.
The body of the loop is then executed twice - once for each handler. The first time, the ArchiveUrlFetch
I have refactored the function to remove this problem. Now the function immediately returns the value from handler.install() and continues to the next handler only if an exception was raised.
I have checked my modifications using "make test" and everything seems to be in order. This addresses bug #1504346.
Looks good.