Ensuring secret ref is not none with payload
Change-Id: Id74aa4a990601fb1fdf3a3b43c63ffc1e2ca0db9
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user