Update rpsystem.py

This commit is contained in:
InspectorCaracal 2022-04-15 14:58:12 -06:00 committed by GitHub
parent ae5ba260f5
commit 1b76e1e3c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -691,7 +691,7 @@ class SdescHandler:
"""
Cache data from storage
"""
self.sdesc = self.obj.attributes.get("_sdesc", default=obj.key)
self.sdesc = self.obj.attributes.get("_sdesc", default=self.obj.key)
sdesc_regex = self.obj.attributes.get("_sdesc_regex", default="")
if not sdesc_regex:
permutation_string = " ".join([self.key] + self.aliases.all())