Skip to content

Commit

Permalink
Add storage link controller.
Browse files Browse the repository at this point in the history
Storage link manages volume attachments.
  • Loading branch information
enolfc committed Apr 17, 2015
1 parent 9efa7b7 commit cb0bac9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ooi/wsgi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import ooi.api.network
from ooi.api import query
import ooi.api.storage
import ooi.api.storage_link
from ooi import exception
from ooi import utils
from ooi.wsgi import parsers
Expand Down Expand Up @@ -144,6 +145,10 @@ def index(self, *args, **kwargs):
ooi.api.storage.Controller)
self.mapper.resource("volume", "storage",
controller=self.resources["storage"])
self.resources["storagelink"] = self._create_resource(
ooi.api.storage_link.Controller)
self.mapper.resource("volume", "storagelink",
controller=self.resources["storagelink"])

self.resources["network"] = self._create_resource(
ooi.api.network.NetworkController)
Expand Down

0 comments on commit cb0bac9

Please sign in to comment.