Add secret-store.py

This commit is contained in:
Liam Young 2015-12-11 15:41:32 +00:00
parent 2086f318a8
commit b7bc5fba4d
1 changed files with 1 additions and 0 deletions

View File

@ -20,5 +20,6 @@ secret = barbican.secrets.create(name='Self destruction sequence',
payload_content_type='text/plain')
secret.store()
print(secret.secret_ref)
ref = secret.secret_ref.replace('localhost', barbican_ip)
retrieved_secret = barbican.secrets.get(secret.secret_ref)
print(retrieved_secret.payload)