Fixed a bug where new server licenses have "0" as a name.
This commit is contained in:
@@ -489,7 +489,7 @@ class API_inserve extends API
|
|||||||
$payload = [
|
$payload = [
|
||||||
"cloud_distribution_id" => $item['md5'], #md5 hash based on the server_uuid from sentri and the subscription name (eg. server_cpu_count)
|
"cloud_distribution_id" => $item['md5'], #md5 hash based on the server_uuid from sentri and the subscription name (eg. server_cpu_count)
|
||||||
"cloud_subscription_id" => "sentri-servers", # Mark all the sentri-servers subscriptions so we can filter the subscriptions better
|
"cloud_subscription_id" => "sentri-servers", # Mark all the sentri-servers subscriptions so we can filter the subscriptions better
|
||||||
"name" => $item['subscriptionInserveName'],
|
"name" => $item['subscriptionSentriName'],
|
||||||
"quantity" => ($row['server_state'] === 'deleted') ? 0 : $item['countSentri'],
|
"quantity" => ($row['server_state'] === 'deleted') ? 0 : $item['countSentri'],
|
||||||
"cloud_distribution_company_id" => $item['sentriCompanyId'], # this is generated by inserve
|
"cloud_distribution_company_id" => $item['sentriCompanyId'], # this is generated by inserve
|
||||||
"status" => $item['SentriStatus'],
|
"status" => $item['SentriStatus'],
|
||||||
|
|||||||
Reference in New Issue
Block a user