mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed Jenkins build failure due to API test case failed.
This commit is contained in:
parent
df9aaf19c2
commit
e2ac6187dc
@ -542,19 +542,19 @@ class UserMappingView(PGChildNodeView, SchemaDiffObjectCompare):
|
||||
umid=umid, conn=self.conn)
|
||||
status, res = self.conn.execute_dict(sql)
|
||||
if not status:
|
||||
return internal_server_error(errormsg=res)
|
||||
return False, internal_server_error(errormsg=res)
|
||||
|
||||
if not res['rows']:
|
||||
return make_json_response(
|
||||
return False, make_json_response(
|
||||
status=410,
|
||||
success=0,
|
||||
errormsg=gettext(
|
||||
'The specified user mapping could not be found.\n'
|
||||
)
|
||||
)
|
||||
return res
|
||||
return True, res
|
||||
except Exception as e:
|
||||
return internal_server_error(errormsg=str(e))
|
||||
return False, internal_server_error(errormsg=str(e))
|
||||
|
||||
@check_precondition
|
||||
def delete(self, gid, sid, did, fid, fsid, **kwargs):
|
||||
@ -599,7 +599,11 @@ class UserMappingView(PGChildNodeView, SchemaDiffObjectCompare):
|
||||
'could not be found.\n'
|
||||
)
|
||||
)
|
||||
res = self._fetch_specified_user_mapping_properties(umid)
|
||||
status, res = \
|
||||
self._fetch_specified_user_mapping_properties(umid)
|
||||
|
||||
if not status:
|
||||
return res
|
||||
|
||||
data = res['rows'][0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user