(self)
return profiles_by_oid
Get the mapping from sysObjectID to profile.
Get the mapping from sysObjectID to profile.
Get the mapping from sysObjectID to profile .
def _get_profiles_mapping(self):
        # type: () -> Dict[str, str]
        """
        Get the mapping from sysObjectID to profile.
        """
        profiles_by_oid = {}  # type: Dict[str, str]
        for name, profile in self.profiles.items():
            sys_object_oids = profile['definition'].get('sysobjectid')
            if sys_object_oids is None:
                continue
            if isinstance(sys_object_oids, str):
                sys_object_oids = [sys_object_oids]
            for sys_object_oid in sys_object_oids:
                profile_match = profiles_by_oid.get(sys_object_oid)
                if profile_match:
                    raise ConfigurationError(
                        "Profile {} has the same sysObjectID ({}) as {}".format(name, sys_object_oid, profile_match)
                    )
                else:
                    profiles_by_oid[sys_object_oid] = name
        return profiles_by_oid
def _get_profiles_mapping ( self ) : # type: () -> Dict[str, str] profiles_by_oid = { } # type: Dict[str, str] for name , profile in self . profiles . items ( ) : sys_object_oids = profile [ 'definition' ] . get ( 'sysobjectid' ) if sys_object_oids is None : continue if isinstance ( sys_object_oids , str ) : sys_object_oids = [ sys_object_oids ] for sys_object_oid in sys_object_oids : profile_match = profiles_by_oid . get ( sys_object_oid ) if profile_match : raise ConfigurationError ( "Profile {} has the same sysObjectID ({}) as {}" . format ( name , sys_object_oid , profile_match ) ) else : profiles_by_oid [ sys_object_oid ] = name return profiles_by_oid