Tests/scripts/hook_validations/incident_field.py
def is_valid_system_flag(self):
        """Validate that field is not marked as system."""
        is_valid_flag = self.current_incident_field.get('system', False) is False
        if not is_valid_flag:
            print_error("The system key must be set to false, please update the file '{}'".format(self.file_path))

        return is_valid_flag
Validate that field is not marked as system.
Validate that field is not marked as system.
Validate that field is not marked as system .
def is_valid_system_flag(self):
        is_valid_flag = self.current_incident_field.get('system', False) is False
        if not is_valid_flag:
            print_error("The system key must be set to false, please update the file '{}'".format(self.file_path))
        return is_valid_flag
def is_valid_system_flag ( self ) : is_valid_flag = self . current_incident_field . get ( 'system' , False ) is False if not is_valid_flag : print_error ( "The system key must be set to false, please update the file '{}'" . format ( self . file_path ) ) return is_valid_flag
Validate that field is not marked as system.
Validate that field is not marked as system .
"""Validate that field is not marked as system."""
self