Merge lp:~daniel-thewatkins/cloud-init/lp1403617 into lp:~cloud-init-dev/cloud-init/trunk
Proposed by
Dan Watkins
on 2015-04-20
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Joshua Harlow on 2015-04-21 | ||||
| Approved revision: | 1096 | ||||
| Merged at revision: | 1096 | ||||
| Proposed branch: | lp:~daniel-thewatkins/cloud-init/lp1403617 | ||||
| Merge into: | lp:~cloud-init-dev/cloud-init/trunk | ||||
| Diff against target: |
191 lines (+95/-46) 2 files modified
cloudinit/sources/DataSourceGCE.py (+50/-42) tests/unittests/test_datasource/test_gce.py (+45/-4) |
||||
| To merge this branch: | bzr merge lp:~daniel-thewatkins/cloud-init/lp1403617 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| cloud-init commiters | 2015-04-20 | Pending | |
|
Review via email:
|
|||
To post a comment you must log in.
| Dan Watkins (daniel-thewatkins) wrote : | # |
| Scott Moser (smoser) wrote : | # |
My only real comment is that I thikn i'd take 'get_metadata' out of 'get_data'.
You can either move it to a stand alone method or a class method. either way, moving it out allows to easier patch it for testing.
lp:~daniel-thewatkins/cloud-init/lp1403617
updated
on 2015-04-20
- 1093. By Dan Watkins on 2015-04-20
-
Refactor GCE metadata fetching to use a helper class.
- 1094. By Dan Watkins on 2015-04-20
-
Rename found variable in GCE data source.
- 1095. By Dan Watkins on 2015-04-20
-
Support multiple metadata paths for metadata keys in GCE data source.
- 1096. By Dan Watkins on 2015-04-20
-
GCE instance-level SSH keys override project-level keys. (LP: #1403617)


I've tested this on a GCE instance, and it works as expected.