Yak shaving
This commit is contained in:
parent
b37f4c4802
commit
ce2ca3c4c4
@ -56,8 +56,7 @@ def prom_exporter():
|
|||||||
response.append('#TYPE '+attribute+' '+info['type'])
|
response.append('#TYPE '+attribute+' '+info['type'])
|
||||||
response.append(attribute+'{'+info['device']+'} '+info['value'])
|
response.append(attribute+'{'+info['device']+'} '+info['value'])
|
||||||
|
|
||||||
s='\n'
|
return '\n'.join(response)
|
||||||
return s.join(response)
|
|
||||||
|
|
||||||
|
|
||||||
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
|
||||||
|
Reference in New Issue
Block a user