mirror of https://github.com/fail2ban/fail2ban
ENH: set/getFile for ticket.py -- found in source distribution of 0.8.4
it was present in source distribution but seems to lack from VCSpull/8/head
parent
441cd891bc
commit
a33135c24d
|
@ -45,6 +45,7 @@ class Ticket:
|
||||||
self.__ip = ip
|
self.__ip = ip
|
||||||
self.__time = time
|
self.__time = time
|
||||||
self.__attempt = 0
|
self.__attempt = 0
|
||||||
|
self.__file = None
|
||||||
self.__matches = matches or []
|
self.__matches = matches or []
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
@ -58,6 +59,12 @@ class Ticket:
|
||||||
def getIP(self):
|
def getIP(self):
|
||||||
return self.__ip
|
return self.__ip
|
||||||
|
|
||||||
|
def setFile(self, value):
|
||||||
|
self.__file = value
|
||||||
|
|
||||||
|
def getFile(self):
|
||||||
|
return self.__file
|
||||||
|
|
||||||
def setTime(self, value):
|
def setTime(self, value):
|
||||||
self.__time = value
|
self.__time = value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue