mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(sns): TagResource and UntagResource return their Result element (#6411)
The AWS SDKs decode both responses through TagResourceResult and UntagResourceResult, so Terraform's aws_sns_topic tag updates now succeed.
This commit is contained in:
1 parent
6256805c33
commit
3b4589645b
2 files changed
+29
-2
No files matched your search
@@ -587,7 +587,7 @@ public class SnsQueryHandler {
|
||||
Map<String, String> tags = extractSnsTags(params);
|
||||
try {
|
||||
snsService.tagResource(resourceArn, tags, region);
|
||||
return Response.ok(AwsQueryResponse.envelopeNoResult("TagResource", AwsNamespaces.SNS)).build();
|
||||
return Response.ok(AwsQueryResponse.envelopeEmptyResult("TagResource", AwsNamespaces.SNS)).build();
|
||||
} catch (AwsException e) {
|
||||
return xmlErrorResponse(e);
|
||||
}
|
||||
@@ -603,7 +603,7 @@ public class SnsQueryHandler {
|
||||
}
|
||||
try {
|
||||
snsService.untagResource(resourceArn, tagKeys, region);
|
||||
return Response.ok(AwsQueryResponse.envelopeNoResult("UntagResource", AwsNamespaces.SNS)).build();
|
||||
return Response.ok(AwsQueryResponse.envelopeEmptyResult("UntagResource", AwsNamespaces.SNS)).build();
|
||||
} catch (AwsException e) {
|
||||
return xmlErrorResponse(e);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user