Skip to content

Commit

Permalink
Address lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Hoang <[email protected]>
  • Loading branch information
Ian Hoang committed Aug 5, 2024
1 parent 947435d commit d62990d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osbenchmark/workload_generator/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ def make_workload_directory(self):
input_text = f"A workload already exists at {self.custom_workload.workload_path}. " \
+ "Would you like to remove it? (y/n): "
user_decision = input(input_text)
while "y" != user_decision and "n" != user_decision:
while user_decision not in ('y', 'n'):
user_decision = input("Provide y for yes or n for no. " + input_text)

if user_decision == "y":
self.logger.info("Removing existing workload [%s] in path [%s]",
self.custom_workload.workload_name, self.custom_workload.workload_path)
console.info(f"Removing workload of the same name.")
console.info("Removing workload of the same name.")
shutil.rmtree(self.custom_workload.workload_path)
elif user_decision == "n":
logging_info = "Keeping workload of the same name at existing path. Cancelling create-workload."
Expand Down

0 comments on commit d62990d

Please sign in to comment.