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
0c3b3480
Commit
0c3b3480
authored
Nov 05, 2013
by
Dionysis Grigoropoulos
Browse files
cyclades: Fix a typo in api/subnets.py
parent
d4a8e52d
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/api/subnets.py
View file @
0c3b3480
...
...
@@ -159,7 +159,7 @@ def get_subnet(request, sub_id):
subnet
=
subnets
.
get_subnet
(
sub_id
)
if
subnet
.
network
.
userid
!=
user_id
:
raise
api
.
fa
i
lts
.
Unauthorized
(
"You're not allowed to view this subnet"
)
raise
api
.
fa
u
lts
.
Unauthorized
(
"You're not allowed to view this subnet"
)
subnet_dict
=
subnet_to_dict
(
subnet
)
data
=
json
.
dumps
({
'subnet'
:
subnet_dict
})
...
...
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