Add secret-store.py

changes/57/350257/1
Liam Young 7 years ago
parent 2086f318a8
commit b7bc5fba4d

@ -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)

Loading…
Cancel
Save