Skip to content

Commit 161a5f6

Browse files
authored
exists method call is broken (#1432)
Issues: Fixes #1431 Problem: The exists method was incorrectly calling the load method Analysis: this patch fixes the method call Tests:
1 parent af2746d commit 161a5f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

f5/bigip/tm/security/log.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def exists(self, **kwargs):
9999
if LooseVersion(self.tmos_ver) == LooseVersion('11.6.0'):
100100
return self._exists_11_6(**kwargs)
101101
else:
102-
return super(Application, self)._load(**kwargs)
102+
return super(Application, self)._exists(**kwargs)
103103

104104
def _exists_11_6(self, **kwargs):
105105
"""Check rule existence on device."""
@@ -174,7 +174,7 @@ def exists(self, **kwargs):
174174
if LooseVersion(self.tmos_ver) == LooseVersion('11.6.0'):
175175
return self._exists_11_6(**kwargs)
176176
else:
177-
return super(Network, self)._load(**kwargs)
177+
return super(Network, self)._exists(**kwargs)
178178

179179
def _exists_11_6(self, **kwargs):
180180
"""Check rule existence on device."""
@@ -249,7 +249,7 @@ def exists(self, **kwargs):
249249
if LooseVersion(self.tmos_ver) == LooseVersion('11.6.0'):
250250
return self._exists_11_6(**kwargs)
251251
else:
252-
return super(Protocol_Dns, self)._load(**kwargs)
252+
return super(Protocol_Dns, self)._exists(**kwargs)
253253

254254
def _exists_11_6(self, **kwargs):
255255
"""Check rule existence on device."""
@@ -324,7 +324,7 @@ def exists(self, **kwargs):
324324
if LooseVersion(self.tmos_ver) == LooseVersion('11.6.0'):
325325
return self._exists_11_6(**kwargs)
326326
else:
327-
return super(Protocol_Sip, self)._load(**kwargs)
327+
return super(Protocol_Sip, self)._exists(**kwargs)
328328

329329
def _exists_11_6(self, **kwargs):
330330
"""Check rule existence on device."""

0 commit comments

Comments
 (0)