Merge lp:~liv3d/maas/windows_allow_all into lp:~maas-committers/maas/trunk
Status: | Rejected |
---|---|
Rejected by: | Mike Pontillo |
Proposed branch: | lp:~liv3d/maas/windows_allow_all |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
29 lines (+8/-4) 1 file modified
src/provisioningserver/drivers/osystem/windows.py (+8/-4) |
To merge this branch: | bzr merge lp:~liv3d/maas/windows_allow_all |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mike Pontillo (community) | Needs Information | ||
Review via email: mp+321163@code.launchpad.net |
Commit message
Allow Windows images of any name to be valid
There is a use case where you may want/need multiple Windows versions with
different setups, but to still be one of the 6 currently allowed O/S.
This change is also useful if in a specific use case the Windows build was
dated with the date of build/last Windows Update baked in to it.
If one of the previously allowed 6 names are used for the Windows image, it
will still correctly give the title as expected, otherwise return the release
name.
Description of the change
Allow Windows images of any name to be valid
There is a use case where you may want/need multiple Windows versions with
different setups, but to still be one of the 6 currently allowed O/S.
This change is also useful if in a specific use case the Windows build was
dated with the date of build/last Windows Update baked in to it.
If one of the previously allowed 6 names are used for the Windows image, it
will still correctly give the title as expected, otherwise return the release
name.
Unmerged revisions
- 5866. By Dan Offord <email address hidden>
-
Allow Windows images of any name to be valid
There is a use case where you may want/need multiple Windows versions with
different setups, but to still be one of the 6 currently allowed O/S.This change is also useful if in a specific use case the Windows build was
dated with the date of build/last Windows Update baked in to it.If one of the previously allowed 6 names are used for the Windows image, it
will still correctly give the title as expected, otherwise return the release
name.
Thanks for your contribution. Unfortunately there is legal due diligence that must happen first. Would you please follow the instructions here?
https:/ /www.ubuntu. com/legal/ contributors
We would be happy to consider your contributions after the agreement is in place.
As for the code, I'm confused about the requirement here. It looks like some validation is being bypassed here for Windows images, and it's not clear to me what the side effects might be. I read your commit message, but still don't fully understand. So a couple things we'll need to happen before we consider this change:
- Please add additional comments to the code indicating why the is_release_ supported( ) check is being bypassed. (It's not clear to me what side effects this might have.)
- Please add unit tests for this change in order to prevent regressions (and, again, better capture the requirement).