Skip to content
Snippets Groups Projects
Commit 9507b4a0 authored by Takumaru Sekine's avatar Takumaru Sekine Committed by Yas Naoi
Browse files

Issue #3239811 by sekinet, yas: Fix an issue to update a uid as an owner of an entity

parent c6bd6e37
No related branches found
No related tags found
No related merge requests found
......@@ -3765,7 +3765,8 @@ class Ec2Service extends CloudServiceBase implements Ec2ServiceInterface {
*/
public function getUidTagValue(array $tags_array, $entity_type_id): int {
// @todo Support AwsCloudEntity::getTagCreatedByUid() in OpenStack module.
$key = $entity_type_id . '_' . !empty(strpos($entity_type_id, 'aws_cloud'))
$key = $entity_type_id . '_';
$key .= strpos($entity_type_id, 'aws_cloud') !== FALSE
? AwsCloudEntity::getTagCreatedByUid($this->cloudContext)
: AwsCloudEntityInterface::TAG_CREATED_BY_UID;
......
......@@ -3465,9 +3465,10 @@ class OpenStackService extends CloudServiceBase implements OpenStackServiceInter
*/
public function getUidTagValue(array $tags_array, $entity_type_id): int {
// @todo Support AwsCloudEntity::getTagCreatedByUid() in OpenStack module.
$key = $entity_type_id . '_' . strpos($entity_type_id, 'aws_cloud') !== FALSE
? AwsCloudEntity::getTagCreatedByUid($this->cloudContext)
: AwsCloudEntityInterface::TAG_CREATED_BY_UID;
$key = $entity_type_id . '_';
$key .= strpos($entity_type_id, 'aws_cloud') !== FALSE
? AwsCloudEntity::getTagCreatedByUid($this->cloudContext)
: AwsCloudEntityInterface::TAG_CREATED_BY_UID;
$uid = 0;
if (!empty($tags_array['Tags'])) {
foreach ($tags_array['Tags'] ?: [] as $tag) {
......
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