From ad7ab0735cdfc02e4ddef27b69618f25ad54abbe Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Wed, 3 Jun 2015 14:26:35 -0400 Subject: [PATCH] scan time should be the same for all hosts --- awx/fact/management/commands/workload_generator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awx/fact/management/commands/workload_generator.py b/awx/fact/management/commands/workload_generator.py index b0f0e2fdf9..4a74214534 100644 --- a/awx/fact/management/commands/workload_generator.py +++ b/awx/fact/management/commands/workload_generator.py @@ -131,7 +131,11 @@ class Experiment(object): time_start = now() print("Started at: %s" % time_start) print("Generating workload ") + + scan_time_backup = self.scan_time for host_i in range(0, self.host_count): + # Reset scan time + self.scan_time = scan_time_backup sys.stdout.write('.') sys.stdout.flush() host = FactHost(hostname='hostname_%s.doesnotexist.ansible.com' % host_i).save()