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
2e66630b
Commit
2e66630b
authored
Sep 17, 2013
by
Kostas Papadimitriou
Browse files
helpdesk: Exclude nics of deleted vms
when helpdesk users search using ip address
parent
a2daae31
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/helpdesk/views.py
View file @
2e66630b
...
...
@@ -185,7 +185,7 @@ def account(request, search_query):
if
is_ip
:
try
:
nic
=
NetworkInterface
.
objects
.
get
(
ipv4
=
search_query
)
nic
=
NetworkInterface
.
objects
.
get
(
ipv4
=
search_query
)
.
exclude
(
machine__deleted
=
True
)
search_query
=
nic
.
machine
.
userid
is_uuid
=
True
except
NetworkInterface
.
DoesNotExist
:
...
...
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