|
|
@@ -6,9 +6,11 @@ import json
|
|
|
from barbicanclient import client as barbican_client
|
|
|
|
|
|
from coriolis import keystone
|
|
|
+from coriolis import utils
|
|
|
|
|
|
|
|
|
def get_secret(ctxt, secret_ref):
|
|
|
session = keystone.create_keystone_session(ctxt)
|
|
|
barbican = barbican_client.Client(session=session)
|
|
|
- return json.loads(barbican.secrets.get(secret_ref).payload)
|
|
|
+ sec = utils.retry_on_error()(barbican.secrets.get)(secret_ref)
|
|
|
+ return json.loads(sec.payload)
|