Revision f1e45161 kamaki/cli/commands/cyclades.py

b/kamaki/cli/commands/cyclades.py
473 473
            'network policy is applied. These policies are set on the cloud, '
474 474
            'so kamaki is oblivious to them',
475 475
            '--no-network'),
476
        project=ValueArgument('Assign the server to project', '--project'),
476
        project_id=ValueArgument('Assign server to project', '--project-id'),
477 477
    )
478 478
    required = ('server_name', 'flavor_id', 'image_id')
479 479

  
......
519 519
    def _run(self, name, flavor_id, image_id):
520 520
        for r in self._create_cluster(
521 521
                name, flavor_id, image_id, size=self['cluster_size'] or 1,
522
                project=self['project']):
522
                project=self['project_id']):
523 523
            if not r:
524 524
                self.error('Create %s: server response was %s' % (name, r))
525 525
                continue
......
659 659

  
660 660
@command(server_cmds)
661 661
class server_reassign(_init_cyclades, _optional_json):
662
    """Assign a VM to a different project
663
    """
662
    """Assign a virtual server to a different project"""
663

  
664
    arguments = dict(
665
        project_id=ValueArgument('The project to assign', '--project-id')
666
    )
667
    required = ('project_id', )
664 668

  
665 669
    @errors.generic.all
666 670
    @errors.cyclades.connection
......
670 674

  
671 675
    def main(self, server_id, project):
672 676
        super(self.__class__, self)._run()
673
        self._run(server_id=server_id, project=project)
677
        self._run(server_id=server_id, project=self['project'])
674 678

  
675 679

  
676 680
@command(server_cmds)

Also available in: Unified diff