py35 doesn't have xrange

Change-Id: Ie9f41449dbcde777e952cc21a702ffd70844eb21
This commit is contained in:
Eyal 2017-09-04 15:38:41 +03:00
parent feb2c777b6
commit ce97f8e9d4

View File

@ -81,7 +81,7 @@ class StressNotificationsService(os_service.Service):
def stress_notifications(self):
notifications = []
for i in xrange(EXISTING_COMPUTES_NUM * VMS_PER_COMPUTE):
for i in range(EXISTING_COMPUTES_NUM * VMS_PER_COMPUTE):
vm = create_vm(i, i % EXISTING_COMPUTES_NUM)
port = create_port(i, vm[0][1]['instance_id'], vm[0][1]['host'],
NET_ID)