Revision 40ddc207 kamaki/cli/commands/cyclades.py

b/kamaki/cli/commands/cyclades.py
389 389
            name='%s%s' % (prefix, i),
390 390
            flavor_id=flavor_id,
391 391
            image_id=image_id,
392
            personality=self['personality']) for i in range(size)]
392
            personality=self['personality']) for i in range(1, 1 + size)]
393 393
        if size == 1:
394 394
            return [self.client.create_server(**servers[0])]
395 395
        try:
396
            return self.client.async_run(self.client.create_server, servers)
396
            r = self.client.async_run(self.client.create_server, servers)
397
            return r
397 398
        except Exception as e:
398 399
            if size == 1:
399 400
                raise e
......
404 405
                    id=s['id']) for s in self.client.list_servers() if (
405 406
                        s['name'] in requested_names)]
406 407
                self.error('Failed to build %s servers' % size)
407
                self.error('Found %s servers with a "%s" prefix:' % (
408
                    len(spawned_servers), prefix))
408
                self.error('Found %s matching servers:' % len(spawned_servers))
409 409
                self._print(spawned_servers, out=self._err)
410 410
                self.error('Check if any of these servers should be removed\n')
411 411
            except Exception as ne:
......
430 430
            self._print(r, self.print_dict)
431 431
            if self['wait']:
432 432
                self._wait(r['id'], r['status'])
433
            self.writeln('')
433
            self.writeln(' ')
434 434

  
435 435
    def main(self, name, flavor_id, image_id):
436 436
        super(self.__class__, self)._run()

Also available in: Unified diff