Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
a9532b94
Commit
a9532b94
authored
Nov 12, 2013
by
Giorgos Korfiatis
Browse files
cyclades: Fix floating_ip resource counting
parent
3df0cee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/quotas/util.py
View file @
a9532b94
...
...
@@ -43,7 +43,7 @@ def get_db_holdings(user=None):
vms
=
VirtualMachine
.
objects
.
filter
(
deleted
=
False
)
networks
=
Network
.
objects
.
filter
(
deleted
=
False
)
floating_ips
=
IPAddress
.
objects
.
filter
(
deleted
=
False
)
floating_ips
=
IPAddress
.
objects
.
filter
(
deleted
=
False
,
floating_ip
=
True
)
if
user
is
not
None
:
vms
=
vms
.
filter
(
userid
=
user
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment