'Returns an error if prerequisites aren\'t met.'

def check_for_setup_error(self):

    if (not self.run_local):
        if (not (self.configuration.san_password or self.configuration.san_private_key)):
            raise exception.InvalidInput(reason=_('Specify    san_password    or    san_private_key'))
    if (not self.configuration.san_ip):
        raise exception.InvalidInput(reason=_('san_ip    must    be    set'))
