Skip to content

Commit

Permalink
Rename policy class.
Browse files Browse the repository at this point in the history
We follow PEP-8: Class names should not begin with lower-case letters
unless there is a really specific or necessary reason for it.
  • Loading branch information
lunkwill42 committed Apr 29, 2024
1 parent 0bac8df commit 46b8765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nav/ipdevpoll/plugins/paloaltoarp.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ def _get_paloalto_arp_mappings(self, address: str, key: str):
def _do_request(self, address: str, key: str):
"""Make request to Paloalto device"""

class sslPolicy(client.BrowserLikePolicyForHTTPS):
class SslPolicy(client.BrowserLikePolicyForHTTPS):
def creatorForNetloc(self, hostname, port):
return ssl.CertificateOptions(verify=False)

url = f"https://{address}/api/?type=op&cmd=<show><arp><entry+name+=+'all'/></arp></show>&key={key}"
self._logger.debug("making request: %s", url)

agent = Agent(reactor, contextFactory=sslPolicy())
agent = Agent(reactor, contextFactory=SslPolicy())

try:
response = yield agent.request(
Expand Down

0 comments on commit 46b8765

Please sign in to comment.