File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44# pylint: disable=R0901,R0904
55
66from __future__ import unicode_literals
7+ import importlib
78import json
89
910from Crypto .PublicKey import RSA
1516from rest_framework .response import Response
1617from rest_framework .status import HTTP_400_BAD_REQUEST
1718
18- from api import models
19- from api import serializers
19+ from deis import settings
20+
21+ from api import models , serializers
22+
23+ # import user-defined config management module
24+ CM = importlib .import_module (settings .CM_MODULE )
2025
2126
2227class AnonymousAuthentication (BaseAuthentication ):
@@ -115,6 +120,9 @@ class KeyViewSet(OwnerViewSet):
115120 serializer_class = serializers .KeySerializer
116121 lookup_field = 'id'
117122
123+ def post_save (self , key , created = False , ** kwargs ):
124+ CM .converge_controller ()
125+
118126
119127class ProviderViewSet (OwnerViewSet ):
120128 """RESTful views for :class:`~api.models.Provider`."""
You can’t perform that action at this time.
0 commit comments