From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4D62E1382C5 for ; Sun, 15 Apr 2018 12:43:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8698AE0954; Sun, 15 Apr 2018 12:43:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53C62E0950 for ; Sun, 15 Apr 2018 12:43:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7D2F7335C8F for ; Sun, 15 Apr 2018 12:43:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D821C2A2 for ; Sun, 15 Apr 2018 12:43:16 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1523796181.ee301819801928f8ec2aa3331a22e3c25558838d.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/salt/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/salt/files/salt-2017.7.2-fix_disk_format.patch X-VCS-Directories: app-admin/salt/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: ee301819801928f8ec2aa3331a22e3c25558838d X-VCS-Branch: master Date: Sun, 15 Apr 2018 12:43:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3a0d4190-caeb-4b98-8ef1-7b76eb1ffd2e X-Archives-Hash: ab38581dd658e7d3a125e2fd783340b6 commit: ee301819801928f8ec2aa3331a22e3c25558838d Author: Michael Mair-Keimberger gmail com> AuthorDate: Sat Apr 14 15:56:05 2018 +0000 Commit: David Seifert gentoo org> CommitDate: Sun Apr 15 12:43:01 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee301819 app-admin/salt: remove unused patch Closes: https://github.com/gentoo/gentoo/pull/7990 .../salt/files/salt-2017.7.2-fix_disk_format.patch | 48 ---------------------- 1 file changed, 48 deletions(-) diff --git a/app-admin/salt/files/salt-2017.7.2-fix_disk_format.patch b/app-admin/salt/files/salt-2017.7.2-fix_disk_format.patch deleted file mode 100644 index 9e58d93f7dd..00000000000 --- a/app-admin/salt/files/salt-2017.7.2-fix_disk_format.patch +++ /dev/null @@ -1,48 +0,0 @@ -From 18fb0be96a146589ccbd642caa9244480c51140b Mon Sep 17 00:00:00 2001 -From: Matthew Summers -Date: Mon, 9 Oct 2017 20:38:52 -0500 -Subject: [PATCH 1/2] addresses issue #43307, disk.format_ to disk.format - -This change fixes breakage. It appears the disk.format_ func is -aliased to disk.format in modules/disk.py ---- - salt/states/blockdev.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/salt/states/blockdev.py b/salt/states/blockdev.py -index 4b0dc5ca81d..e6ecfeab3f1 100644 ---- a/salt/states/blockdev.py -+++ b/salt/states/blockdev.py -@@ -159,7 +159,7 @@ def formatted(name, fs_type='ext4', force=False, **kwargs): - ret['result'] = None - return ret - -- __salt__['disk.format_'](name, fs_type, force=force, **kwargs) -+ __salt__['disk.format'](name, fs_type, force=force, **kwargs) - - # Repeat fstype check up to 10 times with 3s sleeping between each - # to avoid detection failing although mkfs has succeeded - -From 16e1c1dfc86920b7a00dbf7c39b805c359e4d13b Mon Sep 17 00:00:00 2001 -From: Matthew Summers -Date: Mon, 16 Oct 2017 09:47:40 -0500 -Subject: [PATCH 2/2] fixed test addressing issue #43307, disk.format_ to - disk.format - ---- - tests/unit/states/test_blockdev.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tests/unit/states/test_blockdev.py b/tests/unit/states/test_blockdev.py -index e5899f1c70a..9b559dddfe5 100644 ---- a/tests/unit/states/test_blockdev.py -+++ b/tests/unit/states/test_blockdev.py -@@ -100,7 +100,7 @@ def test_formatted(self): - - # Test state return when block device format fails - with patch.dict(blockdev.__salt__, {'cmd.run': MagicMock(return_value=mock_ext4), -- 'disk.format_': MagicMock(return_value=True)}): -+ 'disk.format': MagicMock(return_value=True)}): - comt = ('Failed to format {0}'.format(name)) - ret.update({'comment': comt, 'result': False}) - with patch.object(salt.utils, 'which',