From 22ad25b312a779f5fbb30b853e7ce23cb83a578e Mon Sep 17 00:00:00 2001 From: Alessandro Puccetti Date: Fri, 16 Sep 2016 17:29:17 +0200 Subject: [PATCH] plugins/http-requests: change plugin id Change the ID from `http_requests` to `http-requests`. The new plugin ID convention does not allow `_`. --- examples/plugins/http-requests/http-requests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/plugins/http-requests/http-requests.py b/examples/plugins/http-requests/http-requests.py index 348e6588a..a914c11fc 100755 --- a/examples/plugins/http-requests/http-requests.py +++ b/examples/plugins/http-requests/http-requests.py @@ -17,7 +17,8 @@ import sys EBPF_FILE = "http-requests.c" EBPF_TABLE_NAME = "received_http_requests" -PLUGIN_UNIX_SOCK = "/var/run/scope/plugins/http_requests.sock" +PLUGIN_ID="http-requests" +PLUGIN_UNIX_SOCK = "/var/run/scope/plugins/" + PLUGIN_ID + ".sock" class KernelInspector(threading.Thread): def __init__(self): @@ -123,7 +124,7 @@ class PluginRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): }, 'Plugins': [ { - 'id': 'http_requests', + 'id': PLUGIN_ID, 'label': 'HTTP Requests', 'description': 'Adds http request metrics to processes', 'interfaces': ['reporter'],