Skip to content

Commit

Permalink
Fixed bug caused by wrong syntax validation in valid_real_server()
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquebonadio-zz committed Oct 31, 2014
1 parent e66a10f commit a89e886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkapi/ip/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ def get_by_octs_and_environment_vip(self, oct1, oct2, oct3, oct4, id_evip, valid
if ips.count() == 0:
raise IpNotFoundError(None)

if valid:
if valid == True:
return Ip.objects.get(oct1=oct1, oct2=oct2, oct3=oct3, oct4=oct4,
networkipv4__ambient_vip__id=id_evip)
else:
Expand Down

0 comments on commit a89e886

Please sign in to comment.