Remove ToolBit as valid base objects for Jobs

This commit is contained in:
Markus Lampert
2019-11-01 13:51:42 -07:00
parent 5c3bff1e01
commit fee1ddf73a

View File

@@ -86,6 +86,9 @@ def isValidBaseObject(obj):
# Can't link to anything inside a geo feature group anymore
PathLog.debug("%s is inside a geo feature group" % obj.Label)
return False
if hasattr(obj, 'BitBody') and hasattr(obj, 'BitTemplate'):
# ToolBit's are not valid base objects
return False
if obj.TypeId in NotValidBaseTypeIds:
PathLog.debug("%s is blacklisted (%s)" % (obj.Label, obj.TypeId))
return False