Codebase list python-castellan / 201914f
Fixing error in documentation example The example for retrieving a key has a store call that should be a get. Change-Id: Ib4cc4cb85f7389a9247983977af395f1de904fcb Michael McCune 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4949 from castellan import key_manager
5050
5151 manager = key_manager.API()
52 key = manager.store(myapp.context(), stored_key_id)
52 key = manager.get(myapp.context(), stored_key_id)
5353 if key.get_encoded() == 'super_secret_password':
5454 myapp.do_secret_stuff()
5555