Fix the error "Undefined property: stdClass::$operatingSystem in Drupal\aws_cloud\Service\Pricing\PricingService->getInstanceTypes()"

Created on 22 August 2025, 7 days ago

Problem/Motivation

Fix the following PHP warning

Warning: Undefined property: stdClass::$operatingSystem in Drupal\aws_cloud\Service\Pricing\PricingService->getInstanceTypes() (line 258 of modules/contrib/cloud/modules/cloud_service_providers/aws_cloud/src/Service/Pricing/PricingService.php).
Drupal\aws_cloud\Service\Pricing\PricingService->getInstanceTypes() (Line: 4977)
aws_cloud_import_instance_types() (Line: 4955)
aws_cloud_update_instance_types() (Line: 708)
aws_cloud_rebuild()
call_user_func_array() (Line: 402)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 355)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 401)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 465)
drupal_flush_all_caches() (Line: 180)
Drupal\admin_toolbar_tools\Controller\ToolbarController->flushAll()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 622)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 54)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)
πŸ› Bug report
Status

Active

Version

8.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States baldwinlouie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024