def _rpcapi_update_portgroup(self, context, portgroup, topic):
    """Fake used to mock out the conductor RPCAPI's update_portgroup method.

    Saves the updated portgroup object and returns the updated portgroup
    as-per the real method.
    """
    portgroup.save()
    return portgroup