Skip to content
Permalink
Browse files

Return a deepcopy of DAEMON_STATUS on daemon_status()

So users can mangle the content before send.
  • Loading branch information...
cvaroqui committed Jul 15, 2019
1 parent f239b34 commit 3ec511eb0ad6515ff9f03e95012fdaedd9da7df6
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/osvcd_shared.py
@@ -1399,7 +1399,7 @@ def update_daemon_status(self):

def daemon_status(self):
with DAEMON_STATUS_LOCK:
return DAEMON_STATUS
return copy.deepcopy(DAEMON_STATUS)

@staticmethod
def filter_daemon_status(data, namespaces):

0 comments on commit 3ec511e

Please sign in to comment.
You can’t perform that action at this time.