Merge lp:~ntt-pf-lab/nova/monkey_patch_notification into lp:~hudson-openstack/nova/trunk
Proposed by
Nachi Ueno
Status: | Merged |
---|---|
Approved by: | Ed Leafe |
Approved revision: | 1463 |
Merged at revision: | 1482 |
Proposed branch: | lp:~ntt-pf-lab/nova/monkey_patch_notification |
Merge into: | lp:~hudson-openstack/nova/trunk |
Diff against target: |
426 lines (+245/-0) 16 files modified
bin/nova-api (+1/-0) bin/nova-api-ec2 (+1/-0) bin/nova-api-os (+1/-0) bin/nova-compute (+1/-0) bin/nova-network (+1/-0) bin/nova-objectstore (+1/-0) bin/nova-scheduler (+3/-0) bin/nova-volume (+1/-0) nova/flags.py (+9/-0) nova/notifier/api.py (+27/-0) nova/tests/monkey_patch_example/__init__.py (+33/-0) nova/tests/monkey_patch_example/example_a.py (+29/-0) nova/tests/monkey_patch_example/example_b.py (+30/-0) nova/tests/test_notifier.py (+21/-0) nova/tests/test_utils.py (+45/-0) nova/utils.py (+41/-0) |
To merge this branch: | bzr merge lp:~ntt-pf-lab/nova/monkey_patch_notification |
Related bugs: | |
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ed Leafe (community) | Approve | ||
Alex Meade (community) | Approve | ||
Joshua McKenty (community) | Approve | ||
Matt Dietz | Pending | ||
Jesse Andrews | Pending | ||
Review via email: mp+72262@code.launchpad.net |
Commit message
I added notifications decorator for each API call using monkey_patching.
By this merge, users can get API call notification from any modules.
Description of the change
I added notifications decorator for each API call using monkey_patching.
By this merge, users can get API call notification from any modules.
I added some following Flags.
New Flags
- monkey_patch: Whether monkey patched or not
- monkey_
Module list representing monkey patched module and decorator
This value is colon separated
module:decorator
In addition, I wrote notify decorator which notify functions calls.
To post a comment you must log in.
lgtm - this will make it much easier to debug things.