diff autobot/template.py @ 132:da7af78edcb5

ensure the slaveport is an int
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 23 Jan 2011 17:02:05 -0800
parents d4452281f42a
children b10d16cdc22b
line wrap: on
line diff
--- a/autobot/template.py	Sun Jan 23 11:15:43 2011 -0800
+++ b/autobot/template.py	Sun Jan 23 17:02:05 2011 -0800
@@ -80,7 +80,7 @@
 
     def create(self, output, variables):
         command = ['buildslave', 'create-slave', output,
-                   '%s:%d' % (variables['master'], variables['slaveport']),
+                   '%s:%d' % (variables['master'], int(variables['slaveport'])),
                    variables['slave'],
                    variables['passwd'] ]
         print ' '.join(command)