Merge lp:~termie/nova/mega_flags into lp:~hudson-openstack/nova/trunk
Status: | Merged |
---|---|
Approved by: | Eric Day |
Approved revision: | 201 |
Merge reported by: | OpenStack Infra |
Merged at revision: | not available |
Proposed branch: | lp:~termie/nova/mega_flags |
Merge into: | lp:~hudson-openstack/nova/trunk |
Diff against target: |
331 lines (+273/-10) 6 files modified
nova/flags.py (+138/-9) nova/tests/declare_flags.py (+23/-0) nova/tests/flags_unittest.py (+87/-0) nova/tests/runtime_flags.py (+23/-0) run_tests.py (+1/-0) run_tests.sh (+1/-1) |
To merge this branch: | bzr merge lp:~termie/nova/mega_flags |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Day (community) | Approve | ||
Joshua McKenty (community) | Needs Fixing | ||
Vish Ishaya (community) | Approve | ||
Devin Carlen | Pending | ||
Review via email: mp+31312@code.launchpad.net |
Commit message
Add some useful features to our flags
* No longer dies if there are unknown flags.
* Allows you to declare that you will use a flag from another file
* Allows you to import new flags at runtime and reparses the original arguments to fill them once they are accessed.
This hopefully gets around the issues described by vish in this thread:
Description of the change
Add some useful features to our flags
* No longer dies if there are unknown flags.
* Allows you to declare that you will use a flag from another file
* Allows you to import new flags at runtime and reparses the original arguments to fill them once they are accessed.
This hopefully gets around the issues described by vish in this thread:
This stuff all makes me happy. I think I can continue to deal with flags with these changes. If we can create a best-practices for naming of flags, where they should go, and how they fit into conf files, I think I'm content to stick with gflags.
(copying the above comment to the mailing list)