mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
security/acme-client: style sweep
This commit is contained in:
parent
0ec3d04843
commit
a30717fa42
2 changed files with 6 additions and 6 deletions
|
|
@ -40,7 +40,7 @@ class AcmeZyxelGs1900 extends Base implements LeAutomationInterface
|
|||
{
|
||||
// Required parameters
|
||||
$this->acme_env['DEPLOY_ZYXEL_SWITCH_PASSWORD'] = (string)$this->config->acme_zyxel_gs1900_password;
|
||||
|
||||
|
||||
// Optional Parameters
|
||||
if (!empty((string)$this->config->acme_zyxel_gs1900_host)) {
|
||||
$this->acme_env['DEPLOY_ZYXEL_SWITCH'] = (string)$this->config->acme_zyxel_gs1900_host;
|
||||
|
|
@ -56,7 +56,7 @@ class AcmeZyxelGs1900 extends Base implements LeAutomationInterface
|
|||
}
|
||||
|
||||
$this->acme_args[] = '--deploy-hook zyxel_gs1900';
|
||||
|
||||
|
||||
if ((string)$this->config->acme_zyxel_gs1900_insecure == 1) {
|
||||
array_push($this->acme_args, '--insecure');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1738,22 +1738,22 @@
|
|||
</acme_vault_kvv2>
|
||||
<acme_zyxel_gs1900_host type="HostnameField">
|
||||
<Required>N</Required>
|
||||
<mask>/^.{1,1024}$/u</mask>
|
||||
<Mask>/^.{1,1024}$/u</Mask>
|
||||
<ValidationMessage>Should be a string between 1 and 1024 characters.</ValidationMessage>
|
||||
</acme_zyxel_gs1900_host>
|
||||
<acme_zyxel_gs1900_user type="TextField">
|
||||
<default>admin</default>
|
||||
<Default>admin</Default>
|
||||
<Required>N</Required>
|
||||
</acme_zyxel_gs1900_user>
|
||||
<acme_zyxel_gs1900_password type="TextField">
|
||||
<Required>N</Required>
|
||||
</acme_zyxel_gs1900_password>
|
||||
<acme_zyxel_gs1900_insecure type="BooleanField">
|
||||
<default>0</default>
|
||||
<Default>0</Default>
|
||||
<Required>N</Required>
|
||||
</acme_zyxel_gs1900_insecure>
|
||||
<acme_zyxel_gs1900_reboot type="BooleanField">
|
||||
<default>0</default>
|
||||
<Default>0</Default>
|
||||
<Required>N</Required>
|
||||
</acme_zyxel_gs1900_reboot>
|
||||
</action>
|
||||
|
|
|
|||
Loading…
Reference in a new issue