Skip to content
Snippets Groups Projects
Commit f6798f07 authored by Alexander Krause's avatar Alexander Krause
Browse files

Update role.py to fix json_out Role-bug

parent 660cad9e
No related branches found
No related tags found
1 merge request!24Update role.py to fix json_out Role-bug
...@@ -79,7 +79,7 @@ def identifier(self, value): ...@@ -79,7 +79,7 @@ def identifier(self, value):
def to_json(self): def to_json(self):
"""Returns a JSON representation of this role.""" """Returns a JSON representation of this role."""
out = {"class": self.__class_name, "name": self.__name} self.__json_out = {"class": self.__class_name, "name": self.__name}
if self.identifier: if self.identifier:
self.__json_out["identifier"] = self.identifier self.__json_out["identifier"] = self.identifier
return self.__json_out return self.__json_out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment