who needs newlines...?
This commit is contained in:
parent
4a4b3a5a53
commit
ebf50a2d99
3 changed files with 4 additions and 13 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue