+ out, err = remctl('control', machine.name, 'create',
+ err=True)
+ if 'already exists' in out:
+ raise InvalidInput('action', 'create',
+ 'VM %s is already on' % machine.name)
+ elif err:
+ raise CodeError('"%s" on "control %s create %s'
+ % (err, machine.name, cdtype))
+ else:
+ raise CodeError('"%s" on "control %s create %s'
+ % (err, machine.name, cdtype))