Ori.livneh has uploaded a new change for review.
https://gerrit.wikimedia.org/r/111418
Change subject: scap: invoke dsh via subprocess.call rather than .check_call
......................................................................
scap: invoke dsh via subprocess.call rather than .check_call
dsh frequently fails for mundane reasons -- for example, because a host was
taken out of circulation for repairs but not removed from dsh group. scap just
keeps going, so the Python re-implementation should too, as pathological as
that may seem.
Change-Id: I247995f2bd2c2431063e3ec071c64066d98c77dd
---
M bin/scappy
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/tools/scap
refs/changes/18/111418/1
diff --git a/bin/scappy b/bin/scappy
index 8a51e62..ccc34ba 100755
--- a/bin/scappy
+++ b/bin/scappy
@@ -111,9 +111,9 @@
if exports:
command = '%s %s' % (shell_map(exports), command)
group_file = os.path.join('/etc/dsh/group', group)
- return subprocess.check_call(['/usr/bin/dsh', '-F40', '-cM', '-f',
- group_file, '-o', '-oSetupTimeout=10', '--',
- command.strip()])
+ return subprocess.call(['/usr/bin/dsh', '-F40', '-cM', '-f',
+ group_file, '-o', '-oSetupTimeout=10', '--',
+ command.strip()])
def check_syntax(*paths):
--
To view, visit https://gerrit.wikimedia.org/r/111418
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I247995f2bd2c2431063e3ec071c64066d98c77dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/tools/scap
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits