Skip to content
Permalink
Browse files

Fix a string wildcard substitution pattern in the listener codepath

Causing:

Server Traceback (most recent call last):
  File "/opt/opensvc/lib/osvcd_lsnr.py", line 876, in h2_router
    result = self.router(None, data, stream_id=stream_id)
  File "/opt/opensvc/lib/osvcd_lsnr.py", line 1532, in router
    return getattr(self, fname)(nodename, action=action, options=options, stream_id=stream_id)
  File "/opt/opensvc/lib/osvcd_lsnr.py", line 1917, in action_wake_monitor
    shared.wake_monitor(reason="node notification" % path)
TypeError: not all arguments converted during string formatting
  • Loading branch information...
cvaroqui committed Jul 8, 2019
1 parent 83644b7 commit d82706e5bdf2d673a992bba48d20a4e5cc6b7642
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/osvcd_lsnr.py
@@ -1914,7 +1914,7 @@ def action_wake_monitor(self, nodename, **kwargs):
if path:
shared.wake_monitor(reason="service %s notification" % path)
else:
shared.wake_monitor(reason="node notification" % path)
shared.wake_monitor(reason="node notification")
return {"status": 0}

def rbac_action_clear(self, nodename, **kwargs):

0 comments on commit d82706e

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