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