mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
plugins: style sweep
This commit is contained in:
Regular → Executable
+3
-3
@@ -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:
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user