Commit af8793dd authored by Ryo Yamashita's avatar Ryo Yamashita Committed by Yas Naoi
Browse files

Issue #3272661 by Ryo Yamashita, yas: Hotfix - Add the function to create VMware VM in the SPA

parent f3056a87
Loading
Loading
Loading
Loading
+2 −4
Changes for modules/cloud_service_providers/vmware/src/Controller/ApiController.php: 2 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -326,8 +326,6 @@ class ApiController extends ControllerBase implements ApiControllerInterface {
    return new JsonResponse(['count' => $count]);
  }



  /**
   * {@inheritdoc}
   */
@@ -414,7 +412,7 @@ class ApiController extends ControllerBase implements ApiControllerInterface {
  /**
   * Convert the unit.
   *
   * @param int $value value
   * @param int $value
   *   The Value.
   *
   * @return string
@@ -422,7 +420,7 @@ class ApiController extends ControllerBase implements ApiControllerInterface {
   */
  private function convert(int $value): string {
    if ($value < 1024) {
      return '' + $value;
      return '' . $value;
    }
    if ($value < 1024 * 1024) {
      return round($value / 1024, 2) . 'Ki';