plugins: style sweep

This commit is contained in:
Franco Fichtner
2024-01-02 08:36:35 +01:00
parent c6e16e54f3
commit 32cf8b7b06
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ class Domeneshop(BaseAccount):
def execute(self):
if super().execute():
hostnames = self.settings.get('hostnames')
# DNS update request using the "IP update protocol"
url = f'https://api.domeneshop.no/v0/dyndns/update?hostnames={hostnames}&myip={str(self.current_address)}'
req_opts = {
@@ -64,8 +64,8 @@ class Domeneshop(BaseAccount):
'User-Agent': 'OPNsense-dyndns'
}
}
response = requests.get(**req_opts)
response = requests.get(**req_opts)
# Parse response and update state and log
if response.status_code is 204:
if self.is_verbose:
@@ -42,6 +42,5 @@ class DnsDnsexit extends Base implements LeValidationInterface
$this->acme_env['DNSEXIT_AUTH_USER'] = (string)$this->config->dns_dnsexit_auth_user;
$this->acme_env['DNSEXIT_AUTH_PASS'] = (string)$this->config->dns_dnsexit_auth_pass;
$this->acme_env['DNSEXIT_API_KEY'] = (string)$this->config->dns_dnsexit_api;
}
}