Skip to content
Snippets Groups Projects
Commit 665df6d7 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 d4990e9d
No related branches found
No related tags found
4 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA,!1032Issue #3284576: Release 5.0.0-alpha2
......@@ -326,8 +326,6 @@ class ApiController extends ControllerBase implements ApiControllerInterface {
return new JsonResponse(['count' => $count]);
}
/**
* {@inheritdoc}
*/
......@@ -413,16 +411,16 @@ class ApiController extends ControllerBase implements ApiControllerInterface {
/**
* Convert the unit.
*
* @param int $value value
*
* @param int $value
* The Value.
*
*
* @return string
* Converted value string.
*/
private function convert(int $value): string {
if ($value < 1024) {
return '' + $value;
return '' . $value;
}
if ($value < 1024 * 1024) {
return round($value / 1024, 2) . 'Ki';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment