

def do(self, workflow_dict):
    try:
        client = get_client_for_infra(databaseinfra=workflow_dict['databaseinfra'])
        self.query("set global read_only='ON'")
        return True
    except Exception:
        traceback = full_stack()
        workflow_dict['exceptions']['error_codes'].append(DBAAS_0020)
        workflow_dict['exceptions']['traceback'].append(traceback)
        return False

dataset/ETHPy150Open globocom/database-as-a-service/dbaas/workflow/steps/mysql/region_migration/set_master_read_only.py SetMasterReadOnly.do/VarMisuse@28/48 `client`->`self`