Revision 3e79d925
b/kamaki/cli/commands/cyclades.py | ||
---|---|---|
422 | 422 |
|
423 | 423 |
arguments = dict( |
424 | 424 |
server_name=ValueArgument('The name of the new server', '--name'), |
425 |
flavor_id=IntArgument('The ID of the hardware flavor', '--flavor-id'),
|
|
426 |
image_id=ValueArgument('The ID of the hardware image', '--image-id'),
|
|
425 |
flavor_id=IntArgument('The ID of the flavor', '--flavor-id'), |
|
426 |
image_id=ValueArgument('The ID of the image', '--image-id'), |
|
427 | 427 |
personality=PersonalityArgument( |
428 | 428 |
(80 * ' ').join(howto_personality), ('-p', '--personality')), |
429 | 429 |
wait=FlagArgument('Wait server to build', ('-w', '--wait')), |
... | ... | |
505 | 505 |
|
506 | 506 |
def main(self): |
507 | 507 |
super(self.__class__, self)._run() |
508 |
if self['no_network'] and self['network']: |
|
508 |
if self['no_network'] and self['network_configuration']:
|
|
509 | 509 |
raise CLIInvalidArgument( |
510 | 510 |
'Invalid argument compination', importance=2, details=[ |
511 | 511 |
'Arguments %s and %s are mutually exclusive' % ( |
512 | 512 |
self.arguments['no_network'].lvalue, |
513 |
self.arguments['network'].lvalue)]) |
|
513 |
self.arguments['network_configuration'].lvalue)])
|
|
514 | 514 |
self._run( |
515 | 515 |
name=self['server_name'], |
516 | 516 |
flavor_id=self['flavor_id'], |
Also available in: Unified diff