Skip to content
Snippets Groups Projects
Commit a4af1989 authored by Masato Takada's avatar Masato Takada Committed by Yas Naoi
Browse files

Issue #3168794 by MasatoTakada, yas, Masami: Fix the error of cron, when Cloud...

Issue #3168794 by MasatoTakada, yas, Masami: Fix the error of cron, when Cloud Budget module isn't installed
parent 449faa7b
No related branches found
No related tags found
No related merge requests found
......@@ -2749,6 +2749,12 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface {
* Create queue items for update cost storage queue.
*/
public function createCostStorageQueueItems() {
if (!$this->moduleHandler->moduleExists('cloud_budget')) {
$this->logger('cloud_budget')->error($this->t(
'There are no Cloud Budget module enabled. Please enable Cloud Budget module to process cost storage queues.'
));
return;
}
$plugin = \Drupal::service('plugin.manager.cloud_cost_storage');
foreach ($plugin->getDefinitions() ?: [] as $id => $definition) {
if ($id === 'K8s_cloud_cost_storage') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment