Fixing error in documentation example

The example for retrieving a key has a store call that should be a get.

Change-Id: Ib4cc4cb85f7389a9247983977af395f1de904fcb
This commit is contained in:
Michael McCune 2015-08-28 20:32:46 -04:00
parent 82a0ded5c8
commit 201914f6b7

View File

@ -50,7 +50,7 @@ the manager service. We record the key identifier for later usage.
from castellan import key_manager
manager = key_manager.API()
key = manager.store(myapp.context(), stored_key_id)
key = manager.get(myapp.context(), stored_key_id)
if key.get_encoded() == 'super_secret_password':
myapp.do_secret_stuff()