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)
Issue fork cloud-3542672
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
baldwinlouie commented@yas, please review this patch. This fixes the PHP warning.
Comment #4
yas@baldwinlouie
I’ll merge the patch into
7.xand8.x; and close this issue as Fixed.Comment #7
yas