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
kamaki
Commits
08aad6db
Commit
08aad6db
authored
Apr 11, 2013
by
Stavros Sachtouris
Browse files
Fix typo in commands.errors (self-->this)
This typo caused undesired behavior when deleting a deleted network Bug #3547
parent
76001ae7
Changes
2
Hide whitespace changes
Inline
Side-by-side
kamaki/cli/commands/errors.py
View file @
08aad6db
...
...
@@ -230,7 +230,7 @@ class cyclades(object):
except
ClientError
as
ce
:
if
network_id
and
ce
.
status
==
400
:
msg
=
'Network with id %s does not exist'
%
network_id
,
raiseCLIError
(
ce
,
msg
,
details
=
self
.
about_network_id
)
raiseCLIError
(
ce
,
msg
,
details
=
this
.
about_network_id
)
elif
network_id
or
ce
.
status
==
421
:
msg
=
'Network with id %s is in use'
%
network_id
,
raiseCLIError
(
ce
,
msg
,
details
=
[
...
...
kamaki/clients/cyclades/__init__.py
View file @
08aad6db
...
...
@@ -200,7 +200,7 @@ class CycladesClient(CycladesRestClient):
if
err
.
status
==
421
:
err
.
details
=
[
'Network may be still connected to at least one server'
]
raise
err
raise
def
connect_server
(
self
,
server_id
,
network_id
):
""" Connect a server to a network
...
...
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