Skip to content

Commit

Permalink
Fix some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepsonthefloor committed Mar 22, 2012
1 parent 27f0210 commit ebfcb64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ designed to be run from the nova source tree. To use it:

cd /opt/stack/
git clone [email protected]:cloudbuilders/simple_nova_extension.git
cp simple_nova_extension/nova/nova/api/openstack/compute/contrib/cats.py nova/nova/api/openstack/compute/contrib/cats.py
cp simple_nova_extension/nova/nova/tests/api/openstack/compute/contrib/test_cats.py nova/nova/tests/api/openstack/compute/contrib/test_cats.py
cd simple_nova_extension
cp nova/nova/api/openstack/compute/contrib/cats.py ../nova/nova/api/openstack/compute/contrib/cats.py
cp nova/nova/tests/api/openstack/compute/contrib/test_cats.py ../nova/nova/tests/api/openstack/compute/contrib/test_cats.py

# Then, restart your nova-api process!

Expand Down
2 changes: 2 additions & 0 deletions nova/nova/api/openstack/compute/contrib/cats.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Cats(extensions.ExtensionDescriptor):
updated = "2012-03-20T00:00:00+00:00"

def get_resources(self):
"""Return list of resource extensions"""
resources = []

res = extensions.ResourceExtension('os-cats',
Expand All @@ -82,6 +83,7 @@ def get_resources(self):
return resources

def get_controller_extensions(self):
"""Return list of controller extensions"""
controller = ExtendedServerCatController()
extension = extensions.ControllerExtension(self, 'servers', controller)
return [extension]

0 comments on commit ebfcb64

Please sign in to comment.