'Return object next highest up the tree.'

def get_parent(self):

    if ((self.parent is None) or (self.parent == '')):
        if (self.distro is None):
            return None
        result = self.collection_mgr.distros().find(name=self.distro)
    else:
        result = self.collection_mgr.profiles().find(name=self.parent)
    return result
