Make example 'entry_points' parameter a dictionary
Change-Id: Idad5a1b2d6aaee456cdc3a52554c1d7ddd51a696
This commit is contained in:
parent
23158ad8b3
commit
5f31585c8b
@ -40,11 +40,11 @@ Adding hook object code
|
||||
1. Setup a Python package with a setup.py file.
|
||||
2. Add the following to the setup.py setup call::
|
||||
|
||||
entry_points = [
|
||||
entry_points = {
|
||||
'nova.hooks': [
|
||||
'resize_hook': your_package.hooks.YourHookClass,
|
||||
]
|
||||
]
|
||||
},
|
||||
|
||||
3. *YourHookClass* should be an object with *pre* and/or *post* methods::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user