def _validate_placement(options, parser):
    """Ensure one unit has been requested if machine is not None."""
    if options.machine is not None and options.num_units != 1:
        parser.error('cannot use --num-units > 1 with --to')
