Skip to content

Commit 38a79cc

Browse files
mdkofacebook-github-bot
authored andcommitted
Fix method name typo
Summary: Fixing typo in benchpress cli method. Reviewed By: excelle08 Differential Revision: D83101896
1 parent 19b3406 commit 38a79cc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

benchpress/lib/job.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def arg_list(args):
124124
l.append(str(val))
125125
return l
126126

127-
def substitude_vars(self, role, role_input):
127+
def substitute_vars(self, role, role_input):
128128
if len(self.role_args) > 0:
129129
var_list = self.role_args[role].get("vars", [])
130130
else:
@@ -158,7 +158,7 @@ def check_role(self, role, role_input):
158158
logger.error("the job {} does not have roles".format(self.name))
159159
exit(1)
160160
elif len(self.role_args) == 0 and role == "":
161-
self.substitude_vars(role, role_input)
161+
self.substitute_vars(role, role_input)
162162
elif len(self.role_args) > 0 and role == "":
163163
logger.error("you must select a role in {} job".format(self.name))
164164
exit(1)
@@ -167,7 +167,7 @@ def check_role(self, role, role_input):
167167
logger.error("must type correct role, current roles are:")
168168
logger.error("{}".format(", ".join(self.role_args.keys())))
169169
exit(1)
170-
self.substitude_vars(role, role_input)
170+
self.substitute_vars(role, role_input)
171171

172172
def copy_output(self, stderr, stdout):
173173
# optionally copy stdout/err of the child process to our own

0 commit comments

Comments
 (0)