Correct A Request Parameter Namespace

This wasn't taking affect before as it wasn't in the object the API was
expecting it to be in
This commit is contained in:
Phil Young
2021-06-15 10:52:44 +01:00
parent 9955166ae8
commit f473e5f73c
2 changed files with 11 additions and 11 deletions

View File

@@ -55,9 +55,9 @@ class CustomHostnames implements API
'ssl' => [
'method' => $sslMethod,
'type' => $sslType,
'settings' => $sslSettings
'settings' => $sslSettings,
'wildcard' => $wildcard,
],
'wildcard' => $wildcard,
];
if (!empty($customOriginServer)) {
@@ -65,15 +65,15 @@ class CustomHostnames implements API
}
if (empty($bundleMethod) === false) {
$options['bundle_method'] = $bundleMethod;
$options['ssl']['bundle_method'] = $bundleMethod;
}
if (empty($customKey) === false) {
$options['custom_key'] = $customKey;
$options['ssl']['custom_key'] = $customKey;
}
if (empty($customCertificate) === false) {
$options['custom_certificate'] = $customCertificate;
$options['ssl']['custom_certificate'] = $customCertificate;
}
$zone = $this->adapter->post('zones/'.$zoneID.'/custom_hostnames', $options);