Merge lp://staging/~therve/landscape-client/resync-reboot into lp://staging/~landscape/landscape-client/trunk
Proposed by
Thomas Herve
Status: | Merged |
---|---|
Approved by: | Kevin McDermott |
Approved revision: | 302 |
Merged at revision: | 302 |
Proposed branch: | lp://staging/~therve/landscape-client/resync-reboot |
Merge into: | lp://staging/~landscape/landscape-client/trunk |
Diff against target: |
215 lines (+37/-29) 11 files modified
landscape/monitor/aptpreferences.py (+1/-1) landscape/monitor/computerinfo.py (+0/-4) landscape/monitor/hardwareinventory.py (+0/-4) landscape/monitor/mountinfo.py (+3/-7) landscape/monitor/networkdevice.py (+0/-5) landscape/monitor/plugin.py (+4/-0) landscape/monitor/processorinfo.py (+0/-4) landscape/monitor/rebootrequired.py (+1/-1) landscape/monitor/tests/test_aptpreferences.py (+15/-0) landscape/monitor/tests/test_rebootrequired.py (+11/-0) landscape/monitor/usermonitor.py (+2/-3) |
To merge this branch: | bzr merge lp://staging/~therve/landscape-client/resync-reboot |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kevin McDermott (community) | Approve | ||
Free Ekanayaka (community) | Approve | ||
Review via email: mp+43354@code.staging.launchpad.net |
Description of the change
I started the branch just adding the resync to RebootRequired, but thought that it should require a more systematic approach. So I put the logic in the Plugin class itself, and kept the tests. It seems safer to me this way (although this is a tricky change).
To post a comment you must log in.
Makes sense to me, just need some more info.
[1]
+ The "resynchronize" reactor message cause the plugin to send fresh
s/cause/causes/
(2 times)
[2]
+ def _resynchronize( self): persist. remove( self.persist_ name)
+ self.registry.
+
Are we really sure that we want this for all plugins? I can't think of any bad effect, but it is probably worth double check this.
[3]
- changes = UserChanges( self._persist, self._provider)
- changes.clear()
Looking at the implementation of UserChanges.clear, it looks like this is removing behavior? Is it intended?