Ensuring secret ref is not none with payload

Change-Id: Id74aa4a990601fb1fdf3a3b43c63ffc1e2ca0db9
This commit is contained in:
Chellygel
2015-03-17 13:20:28 -05:00
parent ad024b6dcf
commit 6e7f0e9630

View File

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