Merge ~larsks/cloud-init:feature/hide-oauthlib-import-failure into cloud-init:master
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merged at revision: | af4630c9846fe979152320035e9cc6c411506503 | ||||
| Proposed branch: | ~larsks/cloud-init:feature/hide-oauthlib-import-failure | ||||
| Merge into: | cloud-init:master | ||||
| Diff against target: |
28 lines (+9/-1) 1 file modified
cloudinit/url_helper.py (+9/-1) |
||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Server Team CI bot | continuous-integration | Approve on 2017-08-25 | |
| Scott Moser | 2017-08-25 | Pending | |
|
Review via email:
|
|||
Commit Message
url_helper: fail gracefully if oauthlib is not available
We are unable to ship python-oauthlib in RHEL. This commit allows
imports of url_helper to succeed even when oauthlib is unavailable
and OauthUrlHelper.
when called.
LP: #1713760
Description of the Change
url_helper: fail gracefully if oauthlib is not available
We are unable to ship python-oauthlib in RHEL. This commit allows
imports of url_helper to succeed even when oauthlib is unavailable
and OauthUrlHelper.
when called.
| Chad Smith (chad.smith) wrote : | # |
This branch is good as is, though I'd like to see a mocked ImportError test to confirm the raise NotImplementedE


PASSED: Continuous integration, rev:29025c3b9dd 3ac1eb1d3858f98 26adacdb700ac2 /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 201/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 201/rebuild
https:/