Skip to content
Snippets Groups Projects
Commit 3cdf88f9 authored by baldwinlouie's avatar baldwinlouie
Browse files

git commit -m 'Issue #2995722 by baldwinlouie: Update Instance Name with the...

git commit -m 'Issue #2995722 by baldwinlouie: Update Instance Name with the "Name" Tag from EC2 api'
parent 2d4d5536
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,7 @@ class InstanceEditForm extends AwsCloudContentForm {
'Resources' => [$this->entity->get('instance_id')->value],
'Tags' => [
[
'Key' => 'cloud_instance_nickname',
'Key' => 'Name',
'Value' => $this->entity->get('name')->value
],
]
......
......@@ -538,7 +538,7 @@ class AwsEc2Service implements AwsEc2ServiceInterface {
$instanceName = '';
foreach ($instance['Tags'] as $tag) {
if ($tag['Key'] == 'cloud_instance_nickname') {
if ($tag['Key'] == 'Name') {
$instanceName = $tag['Value'];
}
}
......
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