'Check module args'

def check_args(self):

    if ((not self.type) or (not self.record_name)):
        self.module.fail_json(msg='Error:    Please    input    type    and    record_name.')
    if self.record_name:
        if ((len(self.record_name) < 1) or (len(self.record_name) > 32)):
            self.module.fail_json(msg='Error:    The    len    of    record_name    is    out    of    [1    -    32].')
    if self.description:
        if ((len(self.description) < 1) or (len(self.description) > 80)):
            self.module.fail_json(msg='Error:    The    len    of    description    is    out    of    [1    -    80].')
