'Check invalid args'

def check_args(self):

    if self.location:
        if ((len(self.location) > 255) or (len(self.location) < 1)):
            self.module.fail_json(msg=('Error:    The    len    of    location    %s    is    out    of    [1    -    255].' % self.location))
    else:
        self.module.fail_json(msg='Error:    The    len    of    location    is    0.')
