Commit b0e4493b authored by Yas Naoi's avatar Yas Naoi
Browse files

Issue #3283497 by yas, Xiaohua Guan: Fix an Internal Server Error: "TypeError:...

Issue #3283497 by yas, Xiaohua Guan: Fix an Internal Server Error: "TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter()" while updating K8s ConfigMap
parent d609af05
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1309,7 +1309,9 @@ class K8sService extends CloudServiceBase implements K8sServiceInterface {
   */
  public function updateConfigMap($namespace, array $params = []): array {
    // Remove empty properties.
    if (!empty($param['spec'])) {
      $params['spec'] = array_filter($params['spec']);
    }

    // Remove status, which should not be modified.
    unset($params['status']);