Skip to content
Permalink
Browse files

Fix py2 compat in osvcd listener

(*args, key=val, **kwargs) prototype is not allowed by py2
  • Loading branch information...
cvaroqui committed Jun 28, 2019
1 parent 4a52626 commit 396cbf94f97ca14927612322d9c77e2304eb28af
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/osvcd_lsnr.py
@@ -2457,7 +2457,7 @@ def raw_push_action_events(self):
continue
self.conn.sendall(msg)

def action_service_backlogs(self, *args, stream_id=None, **kwargs):
def action_service_backlogs(self, nodename, stream_id=None, **kwargs):
"""
Send service past logs.
kwargs:
@@ -2482,7 +2482,7 @@ def action_service_backlogs(self, *args, stream_id=None, **kwargs):
ofile = self._action_logs_open(logfile, backlog, "svc")
return self.read_file_lines(ofile)

def action_service_logs(self, *args, stream_id=None, **kwargs):
def action_service_logs(self, nodename, stream_id=None, **kwargs):
"""
Send service logs.
kwargs:
@@ -2506,7 +2506,7 @@ def action_service_logs(self, *args, stream_id=None, **kwargs):
"args": [ofile, True],
})

def action_node_backlogs(self, *args, stream_id=None, **kwargs):
def action_node_backlogs(self, nodename, stream_id=None, **kwargs):
"""
Send service past logs.
kwargs:
@@ -2521,7 +2521,7 @@ def action_node_backlogs(self, *args, stream_id=None, **kwargs):
ofile = self._action_logs_open(logfile, backlog, "node")
return self.read_file_lines(ofile)

def action_node_logs(self, *args, stream_id=None, **kwargs):
def action_node_logs(self, nodename, stream_id=None, **kwargs):
"""
Send node logs.
kwargs:

0 comments on commit 396cbf9

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