small issue with time import
authorMatt Hootman <mhootman1980@gmail.com>
Wed, 18 Apr 2012 17:30:52 +0000 (12:30 -0500)
committerMatt Hootman <mhootman1980@gmail.com>
Wed, 18 Apr 2012 17:30:52 +0000 (12:30 -0500)
jenkinsapi/job.py

index 9a94884..fa1c255 100644 (file)
@@ -71,7 +71,7 @@ class Job(JenkinsBase):
             total_wait = 0
             while self.is_queued():
                 log.info( "Waited %is for %s to begin..." % ( total_wait, self.id() ) )
-                time.sleep( invoke_block_delay )
+                sleep( invoke_block_delay )
                 total_wait += invoke_block_delay
             if self.is_running():
                 running_build = self.get_last_build()