Add the word "seconds" at the end of the log message, since "time.sleep()"
takes a number which is always interpreted as the number of seconds to sleep
for.
Before this commit, the log said:
INFO:teuthology.task.sleep:Sleeping for 10
After:
INFO:teuthology.task.sleep:Sleeping for 10 seconds
Signed-off-by: Nathan Cutler <ncutler@suse.com>
config = {}
assert isinstance(config, dict)
duration = int(config.get('duration', 5))
- log.info('Sleeping for %d', duration)
+ log.info('Sleeping for {} seconds'.format(duration))
time.sleep(duration)