'Validate local facts
Args:
facts (dict): local facts to validate'

def validate_local_facts(self, facts=None):

    invalid_facts = dict()
    invalid_facts = self.validate_master_facts(facts, invalid_facts)
    if invalid_facts:
        msg = 'Invalid    facts    detected:\n'
        for key in invalid_facts.keys():
            msg += '{0}:    {1}\n'.format(key, invalid_facts[key])
        module.fail_json(msg=msg, changed=self.changed)
