Skip to content

Commit 2353682

Browse files
Fixed RDB path resolver on run-remote automation (#47)
* [fix] Fixed RDB path resolver on run-remote automation * [fix] Checking asap the artifact module
1 parent 3417660 commit 2353682

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.1.46"
3+
version = "0.1.47"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <filipecosta.90@gmail.com>"]
66
readme = "README.md"

redisbench_admin/run_remote/run_remote.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ def run_remote_command_logic(args):
131131
logging.error("missing required EC2_PRIVATE_PEM env variable")
132132
exit(1)
133133

134+
logging.info("Using the following module artifact: {}".format(local_module_file))
135+
logging.info("Checking if module artifact exists...")
136+
if os.path.exists(local_module_file) is False:
137+
logging.error("Specified module artifact does not exist: {}".format(local_module_file))
138+
exit(1)
139+
else:
140+
logging.info("Confirmed that module artifact: '{}' exists!".format(local_module_file))
141+
134142
logging.info("Using the following vars on terraform deployment:")
135143
logging.info("\tterraform bin path: {}".format(tf_bin_path))
136144
logging.info("\tgithub_actor: {}".format(tf_github_actor))

redisbench_admin/utils/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def copyFileToRemoteSetup(
3131
server_public_ip, username, private_key, local_file, remote_file, dirname=None
3232
):
3333
res = False
34-
full_localpath = local_file
34+
full_local_path = local_file
3535
if dirname is not None:
3636
full_local_path = "{}/{}".format(dirname, local_file)
3737
logging.info(

0 commit comments

Comments
 (0)