]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/install: str.replace() does not keyword args 1197/head
authorKefu Chai <kchai@redhat.com>
Fri, 3 Aug 2018 13:09:39 +0000 (21:09 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 3 Aug 2018 13:09:51 +0000 (21:09 +0800)
In [8]: ?s.replace
Docstring:
S.replace(old, new[, count]) -> str

Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/task/install/rpm.py

index b84ee6041d10abedeed7b540a61a5efc599f00d6..23d50d6a2ee08ec232c7404bc917eefa198537ae 100644 (file)
@@ -76,7 +76,7 @@ def _package_overrides(pkgs, os):
     for pkg in pkgs:
         if is_rhel:
             if pkg.startswith('python3-') or pkg == 'python3':
-                pkg = pkg.replace('3', '34', count=1)
+                pkg = pkg.replace('3', '34', 1)
         result.append(pkg)
     return result