Fix bug in ReadOnlyTokenFile
ReadOnlyTokenFile didn't initialize `self._targets` to `None`, causing issues.
This commit is contained in:
parent
df10501615
commit
11f9a6cf10
|
|
@ -12,6 +12,10 @@ class ReadOnlyTokenFile(BasePlugin):
|
||||||
# source is a token file with lines like
|
# source is a token file with lines like
|
||||||
# token: host:port
|
# token: host:port
|
||||||
# or a directory of such files
|
# or a directory of such files
|
||||||
|
def __init__(self, *args, **kwargs):
|
||||||
|
super(ReadOnlyTokenFile, self).__init__(*args, **kwargs)
|
||||||
|
self._targets = None
|
||||||
|
|
||||||
def _load_targets(self):
|
def _load_targets(self):
|
||||||
if os.path.isdir(self.source):
|
if os.path.isdir(self.source):
|
||||||
cfg_files = [os.path.join(self.source, f) for
|
cfg_files = [os.path.join(self.source, f) for
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue