Commit 08aad6db authored by Stavros Sachtouris's avatar 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
......@@ -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=[
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment