who needs newlines...?

This commit is contained in:
Johannes Findeisen 2013-06-10 05:20:50 +02:00
commit ebf50a2d99
3 changed files with 4 additions and 13 deletions

View file

@ -7,20 +7,18 @@ from service import Service
class SnmpgetService(Service):
def __init__(self, **kwargs):
def __init__(self, parser, log, **kwargs):
super(Service, self).__init__(parser)
if "community" in kwargs:
self.community = kwargs["community"]
else:
#log.w("There is no community")
log.w("There is no community")
raise
if "oid" in kwargs:
self.oid = kwargs["oid"]
else:
#log.w("There is no oid")
log.w("There is no oid")
raise
if "port" in kwargs:
self.port = kwargs["port"]
else: