Skip to content
Snippets Groups Projects
Commit ccb1b1e5 authored by Masami  Suzuki's avatar Masami Suzuki Committed by Yas Naoi
Browse files

Issue #3354236 by Masami, yas: Fix undefined array keys in...

Issue #3354236 by Masami, yas: Fix undefined array keys in Drupal\openstack\Service\Rest\OpenStackService::describeQuotas() when updating Openstack quota
parent 1296fd5f
No related branches found
No related tags found
No related merge requests found
......@@ -4654,45 +4654,45 @@ class OpenStackService extends CloudServiceBase implements OpenStackServiceInter
[
'Name' => 'quota',
'ProjectId' => $project_id,
'Instances' => $compute_quota['instances']['limit'],
'Instances' => $compute_quota['instances']['limit'] ?? NULL,
'InstancesUsage' => $compute_quota['instances']['in_use'] ?? 0,
'Cores' => $compute_quota['cores']['limit'],
'Cores' => $compute_quota['cores']['limit'] ?? NULL,
'CoresUsage' => $compute_quota['cores']['in_use'] ?? 0,
'Ram' => $compute_quota['ram']['limit'] ,
'Ram' => $compute_quota['ram']['limit'] ?? NULL ,
'RamUsage' => $compute_quota['ram']['in_use'] ?? 0,
'MetadataItems' => $compute_quota['metadata_items']['limit'],
'MetadataItems' => $compute_quota['metadata_items']['limit'] ?? NULL,
'MetadataItemsUsage' => $compute_quota['metadata_items']['in_use'] ?? 0,
'KeyPairs' => $compute_quota['key_pairs']['limit'],
'KeyPairs' => $compute_quota['key_pairs']['limit'] ?? NULL,
'KeyPairsUsage' => $compute_quota['key_pairs']['in_use'] ?? 0,
'ServerGroups' => $compute_quota['server_groups']['limit'],
'ServerGroups' => $compute_quota['server_groups']['limit'] ?? NULL,
'ServerGroupsUsage' => $compute_quota['server_groups']['in_use'] ?? 0,
'ServerGroupMembers' => $compute_quota['server_group_members']['limit'],
'ServerGroupMembers' => $compute_quota['server_group_members']['limit'] ?? NULL,
'ServerGroupMembersUsage' => $compute_quota['server_group_members']['in_use'] ?? 0,
'InjectedFiles' => $compute_quota['injected_files']['limit'],
'InjectedFiles' => $compute_quota['injected_files']['limit'] ?? NULL,
'InjectedFilesUsage' => $compute_quota['injected_files']['in_use'] ?? 0,
'InjectedFileContentBytes' => $compute_quota['injected_file_content_bytes']['limit'],
'InjectedFileContentBytes' => $compute_quota['injected_file_content_bytes']['limit'] ?? NULL,
'InjectedFileContentBytesUsage' => $compute_quota['injected_file_content_bytes']['in_use'] ?? 0,
'InjectedFilePathBytes' => $compute_quota['injected_file_path_bytes']['limit'],
'InjectedFilePathBytes' => $compute_quota['injected_file_path_bytes']['limit'] ?? NULL,
'InjectedFilePathBytesUsage' => $compute_quota['injected_file_path_bytes']['in_use'] ?? 0,
'Volumes' => $volume_quota['volumes']['limit'],
'Volumes' => $volume_quota['volumes']['limit'] ?? NULL,
'VolumesUsage' => $volume_quota['volumes']['in_use'] ?? 0,
'Snapshots' => $volume_quota['snapshots']['limit'],
'Snapshots' => $volume_quota['snapshots']['limit'] ?? NULL,
'SnapshotsUsage' => $volume_quota['snapshots']['in_use'] ?? 0,
'GigaBytes' => $volume_quota['gigabytes']['limit'],
'GigaBytes' => $volume_quota['gigabytes']['limit'] ?? NULL,
'GigaBytesUsage' => $volume_quota['gigabytes']['in_use'] ?? 0,
'Network' => $network_quota['network']['limit'],
'Network' => $network_quota['network']['limit'] ?? NULL,
'NetworkUsage' => $network_quota['network']['used'] ?? 0,
'Subnet' => $network_quota['subnet']['limit'],
'Subnet' => $network_quota['subnet']['limit'] ?? NULL,
'SubnetUsage' => $network_quota['subnet']['used'] ?? 0,
'Port' => $network_quota['port']['limit'],
'Port' => $network_quota['port']['limit'] ?? NULL,
'PortUsage' => $network_quota['port']['used'] ?? 0,
'Router' => $network_quota['router']['limit'],
'Router' => $network_quota['router']['limit'] ?? NULL,
'RouterUsage' => $network_quota['router']['used'] ?? 0,
'FloatingIp' => $network_quota['floatingip']['limit'],
'FloatingIp' => $network_quota['floatingip']['limit'] ?? NULL,
'FloatingIpUsage' => $network_quota['floatingip']['used'] ?? 0,
'SecurityGroup' => $network_quota['security_group']['limit'],
'SecurityGroup' => $network_quota['security_group']['limit'] ?? NULL,
'SecurityGroupUsage' => $network_quota['security_group']['used'] ?? 0,
'SecurityGroupRule' => $network_quota['security_group_rule']['limit'],
'SecurityGroupRule' => $network_quota['security_group_rule']['limit'] ?? NULL,
'SecurityGroupRuleUsage' => $network_quota['security_group_rule']['used'] ?? 0,
],
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment