(self, profile, path)
Calls the recursive function(verify_duplicate_oid_profile_recursive)
        to check if there are any duplicated oid.
        It also logs the duplicated OID and reports all the files:lines where it is.
Calls the recursive function(verify_duplicate_oid_profile_recursive)
        to check if there are any duplicated oid.
        It also logs the duplicated OID and reports all the files:lines where it is.
Calls the recursive function ( verify_duplicate_oid_profile_recursive ) to check if there are any duplicated oid . It also logs the duplicated OID and reports all the files : lines where it is .
def validate(self, profile, path):
        # type: (ProfileValidator,str, str) -> None
        """
        Calls the recursive function(verify_duplicate_oid_profile_recursive)
        to check if there are any duplicated oid.
        It also logs the duplicated OID and reports all the files:lines where it is.
        """
        self.verify_duplicate_oid_profile_recursive(profile, path)
        for OID in self.duplicated:
            output_message = ""
            output_message = "metric with OID " + OID + " is duplicated in profiles: \n"
            for file, line in self.duplicated.get(OID):
                output_message = output_message + "|------> " + file + ":" + str(line) + '\n'
            self.fail(output_message)
        if len(self.duplicated) == 0 and not self.result.failed:
            self.success("No duplicated OID ")
def validate ( self , profile , path ) : # type: (ProfileValidator,str, str) -> None self . verify_duplicate_oid_profile_recursive ( profile , path ) for OID in self . duplicated : output_message = "" output_message = "metric with OID " + OID + " is duplicated in profiles: \n" for file , line in self . duplicated . get ( OID ) : output_message = output_message + "|------> " + file + ":" + str ( line ) + '\n' self . fail ( output_message ) if len ( self . duplicated ) == 0 and not self . result . failed : self . success ( "No duplicated OID " )