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

Command icon 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

baldwinlouie created an issue. See original summary.

baldwinlouie’s picture

Status: Active » Needs review

@yas, please review this patch. This fixes the PHP warning.

yas’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

@baldwinlouie

I’ll merge the patch into 7.x and 8.x; and close this issue as Fixed.

  • yas committed f121744b on 8.x authored by baldwinlouie
    Issue #3542672 by baldwinlouie, yas: Fix the error "Undefined property:...

  • yas committed 32d59ece on 7.x
    Issue #3542672 by baldwinlouie, yas: Fix the error "Undefined property:...
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.