

def _replace_user_ids(self, instance):
    "User IDs for VMs on DST by default is set to admin's ID. This\n        replaces admin user IDs with correct user IDs"
    src_user_id = instance['instance']['user_id']
    dst_user = keystone.get_dst_user_from_src_user_id(self.src_cloud.resources[utils.IDENTITY_RESOURCE], self.dst_cloud.resources[utils.IDENTITY_RESOURCE], src_user_id)
    dst_user['instance']['user_id'] = dst_user.id
    return instance

dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/actions/transport_instance.py TransportInstance._replace_user_ids/VarMisuse@55/143 `instance`->`dst_user`