commit:     26dc3c4ddc226dbc77dd340d18d7ddb4a5640ee1
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Mon Jan 18 19:41:01 2021 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Jan 19 23:10:15 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26dc3c4d

app-admin/ansible: remove unused patch(es).

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/19110
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 .../files/ansible-2.10.0-CVE-2020-25635-6.patch    | 54 ----------------------
 1 file changed, 54 deletions(-)

diff --git a/app-admin/ansible/files/ansible-2.10.0-CVE-2020-25635-6.patch 
b/app-admin/ansible/files/ansible-2.10.0-CVE-2020-25635-6.patch
deleted file mode 100644
index df88be4264f..00000000000
--- a/app-admin/ansible/files/ansible-2.10.0-CVE-2020-25635-6.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From 921bd53103c2b543e95c9e6b863702db3ff54d0c Mon Sep 17 00:00:00 2001
-From: Jill R <4121322+ji...@users.noreply.github.com>
-Date: Fri, 2 Oct 2020 11:37:37 -0700
-Subject: [PATCH] aws_ssm: Namespace S3 buckets and delete transferred files
- (#237)
-
-Files transferred to instances via the SSM connection plugin should use
-folders within the bucket that are namespaced per-host, to prevent collisions.
-Files should also be deleted from buckets when they are no longer required.
-
-Fixes: #221
-Fixes: #222
-
-Based on work by abeluck
-
-changelog
----
- 
ansible_collections/community/aws/changelogs/fragments/221_222_ssm_bucket_operations.yaml
 | 2 ++
- ansible_collections/community/aws/plugins/connection/aws_ssm.py               
            | 6 +++++-
- 2 files changed, 7 insertions(+), 1 deletion(-)
- create mode 100644 
ansible_collections/community/aws/changelogs/fragments/221_222_ssm_bucket_operations.yaml
-
-diff --git 
a/ansible_collections/community/aws/changelogs/fragments/221_222_ssm_bucket_operations.yaml
 
b/ansible_collections/community/aws/changelogs/fragments/221_222_ssm_bucket_operations.yaml
-new file mode 100644
-index 00000000..247d5e36
---- /dev/null
-+++ 
b/ansible_collections/community/aws/changelogs/fragments/221_222_ssm_bucket_operations.yaml
-@@ -0,0 +1,2 @@
-+bugfixes:
-+  - aws_ssm connection plugin - namespace file uploads to S3 into unique 
folders per host, to prevent name collisions. Also deletes files from S3 to 
ensure temp files are not left behind. 
(https://github.com/ansible-collections/community.aws/issues/221, 
https://github.com/ansible-collections/community.aws/issues/222)
-diff --git a/ansible_collections/community/aws/plugins/connection/aws_ssm.py 
b/ansible_collections/community/aws/plugins/connection/aws_ssm.py
-index 7f7d6926..94289eee 100644
---- a/ansible_collections/community/aws/plugins/connection/aws_ssm.py
-+++ b/ansible_collections/community/aws/plugins/connection/aws_ssm.py
-@@ -522,7 +522,8 @@ def _get_boto_client(self, service, region_name=None):
-     def _file_transport_command(self, in_path, out_path, ssm_action):
-         ''' transfer a file from using an intermediate S3 bucket '''
- 
--        s3_path = out_path.replace('\\', '/')
-+        path_unescaped = "{0}/{1}".format(self.instance_id, out_path)
-+        s3_path = path_unescaped.replace('\\', '/')
-         bucket_url = 's3://%s/%s' % (self.get_option('bucket_name'), s3_path)
- 
-         if self.is_windows:
-@@ -546,6 +547,9 @@ def _file_transport_command(self, in_path, out_path, 
ssm_action):
-                 client.upload_fileobj(data, self.get_option('bucket_name'), 
s3_path)
-             (returncode, stdout, stderr) = self.exec_command(get_command, 
in_data=None, sudoable=False)
- 
-+        # Remove the files from the bucket after they've been transferred
-+        client.delete_object(Bucket=self.get_option('bucket_name'), 
Key=s3_path)
-+
-         # Check the return code
-         if returncode == 0:
-             return (returncode, stdout, stderr)

Reply via email to