Skip to content

Commit

Permalink
Merge branch 'integration_dev_master' of https://github.com/globocom/…
Browse files Browse the repository at this point in the history
…GloboNetworkAPI.git into integration_dev_master
  • Loading branch information
henriquebonadio committed May 7, 2015
2 parents 73f8e5e + 59af9cf commit 878f2df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion networkapi/eventlog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def log(cls, usuario, evento):

@classmethod
def uniqueUsers(cls):
userlist = Usuario.objects.all()
userlist = Usuario.objects.all().order_by('user')

return userlist

Expand Down
2 changes: 1 addition & 1 deletion networkapi/eventlog/resource/EventLogChoiceResource.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def handle_post(self, request, user, *args, **kwargs):

functionalities = Functionality.objects

acoes = ['Cadastrar', 'Alterar', 'Remover']
acoes = ['Alterar', 'Cadastrar', 'Remover']
usuarios = EventLog.uniqueUsers()

funcionalidades = functionalities.all()
Expand Down
6 changes: 2 additions & 4 deletions networkapi/requisicaovips/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,8 +1621,7 @@ def save_vips_and_ports(self, vip_map, user):
).uniqueResult()

else:
raise Exception(
e, u'Unexpected error while searching for existing pool.')
raise RequisicaoVipsError(None, u'Unexpected error while searching for existing pool.')

server_pool.default_port = default_port
if healthcheck_obj != None:
Expand Down Expand Up @@ -1705,8 +1704,7 @@ def save_vips_and_ports(self, vip_map, user):
elif server_pool_members.count() == 1:
server_pool_member = server_pool_members.uniqueResult()
else:
raise Exception(
e, u'Unexpected error while searching for existing member.')
raise RequisicaoVipsError(None, u'Unexpected error while searching for existing pool.')

server_pool_member.port_real = port_real
server_pool_member.priority = priority
Expand Down

0 comments on commit 878f2df

Please sign in to comment.