summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/powercycle
diff options
context:
space:
mode:
authorDavid Bradford <david.bradford@mongodb.com>2021-03-01 12:35:13 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-01 23:46:55 +0000
commita22cbaba0634e6d20244b75c94e8e693e961399d (patch)
tree37cbc45eae4d174299f33515ea97214789b9cb75 /buildscripts/resmokelib/powercycle
parentfae0542f9ff0be300a5a6d1eb901b15f5a0953dd (diff)
downloadmongo-a22cbaba0634e6d20244b75c94e8e693e961399d.tar.gz
SERVER-54861: Update pylint to 2.7.2
Diffstat (limited to 'buildscripts/resmokelib/powercycle')
-rw-r--r--buildscripts/resmokelib/powercycle/lib/remote_operations.py2
-rwxr-xr-xbuildscripts/resmokelib/powercycle/powercycle.py3
-rw-r--r--buildscripts/resmokelib/powercycle/setup/__init__.py4
3 files changed, 4 insertions, 5 deletions
diff --git a/buildscripts/resmokelib/powercycle/lib/remote_operations.py b/buildscripts/resmokelib/powercycle/lib/remote_operations.py
index 1d175eebdd1..1e3178163b5 100644
--- a/buildscripts/resmokelib/powercycle/lib/remote_operations.py
+++ b/buildscripts/resmokelib/powercycle/lib/remote_operations.py
@@ -76,7 +76,7 @@ class RemoteOperations(object): # pylint: disable=too-many-instance-attributes
shell=self.use_shell)
buff_stdout, _ = process.communicate()
buff = buff_stdout.decode("utf-8", "replace")
- print(f"Result of command:")
+ print("Result of command:")
print(textwrap.indent(buff, "[result body] "))
return process.poll(), buff
diff --git a/buildscripts/resmokelib/powercycle/powercycle.py b/buildscripts/resmokelib/powercycle/powercycle.py
index 0a168412e59..7125d6a0ca7 100755
--- a/buildscripts/resmokelib/powercycle/powercycle.py
+++ b/buildscripts/resmokelib/powercycle/powercycle.py
@@ -481,8 +481,7 @@ def install_tarball(tarball, root_dir):
fi ;
done ;
popd ;
- """.format( # pylint: disable=bad-continuation
- tarball=tarball, tmp_dir=tmp_dir, root_dir=root_dir)
+ """.format(tarball=tarball, tmp_dir=tmp_dir, root_dir=root_dir)
ret, output = execute_cmd(cmds, use_file=True)
shutil.rmtree(tmp_dir)
else:
diff --git a/buildscripts/resmokelib/powercycle/setup/__init__.py b/buildscripts/resmokelib/powercycle/setup/__init__.py
index 001f7d57a96..fb980750466 100644
--- a/buildscripts/resmokelib/powercycle/setup/__init__.py
+++ b/buildscripts/resmokelib/powercycle/setup/__init__.py
@@ -25,9 +25,9 @@ class SetUpEC2Instance(PowercycleCommand):
remote_dir = powercycle_constants.REMOTE_DIR
db_path = powercycle_constants.DB_PATH
- set_permission_stmt = f"chmod -R 777"
+ set_permission_stmt = "chmod -R 777"
if self.is_windows():
- set_permission_stmt = f"setfacl -s user::rwx,group::rwx,other::rwx"
+ set_permission_stmt = "setfacl -s user::rwx,group::rwx,other::rwx"
cmds = f"{self.sudo} mkdir -p {remote_dir}; {self.sudo} chown -R {user_group} {remote_dir}; {set_permission_stmt} {remote_dir}; ls -ld {remote_dir}"
cmds = f"{cmds}; {self.sudo} mkdir -p {db_path}; {self.sudo} chown -R {user_group} {db_path}; {set_permission_stmt} {db_path}; ls -ld {db_path}"