From 6e7f0e963036e59657e700dd1bbb60d10e1c6edf Mon Sep 17 00:00:00 2001 From: Chellygel Date: Tue, 17 Mar 2015 13:20:28 -0500 Subject: [PATCH] Ensuring secret ref is not none with payload Change-Id: Id74aa4a990601fb1fdf3a3b43c63ffc1e2ca0db9 --- barbicanclient/secrets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barbicanclient/secrets.py b/barbicanclient/secrets.py index 844ef4aa..0286de0a 100644 --- a/barbicanclient/secrets.py +++ b/barbicanclient/secrets.py @@ -174,7 +174,7 @@ class Secret(SecretFormatter): """ Lazy-loaded property that holds the unencrypted data """ - if self._payload is None: + if self._payload is None and self.secret_ref is not None: self._fetch_payload() return self._payload