Merge lp:~julian-edwards/maas/touch-maasmeta into lp:~maas-committers/maas/trunk
Proposed by
Julian Edwards
Status: | Merged |
---|---|
Approved by: | Julian Edwards |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2599 |
Proposed branch: | lp:~julian-edwards/maas/touch-maasmeta |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
91 lines (+51/-4) 2 files modified
src/provisioningserver/import_images/boot_resources.py (+9/-4) src/provisioningserver/import_images/tests/test_boot_resources.py (+42/-0) |
To merge this branch: | bzr merge lp:~julian-edwards/maas/touch-maasmeta |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeroen T. Vermeulen (community) | Approve | ||
Raphaël Badin (community) | Approve | ||
Review via email: mp+228301@code.launchpad.net |
Commit message
When checking maas.meta, update its utime so we can determine elsewhere the last time the import ran
To post a comment you must log in.
Doesn't seem right to hide "and oh yes, modify its timestamp" in a function called meta_contains. Why not do this one level up, in import_images?
if meta_contains( storage, meta_file_content):
update_ meta_timestamp( storage)
# No changes. Update the meta file's timestamp so that future
# import runs can see that we checked, but otherwise we're done.
return
Jeroen