Revision d1f78278 kamaki/cli/commands/errors.py
b/kamaki/cli/commands/errors.py | ||
---|---|---|
227 | 227 |
try: |
228 | 228 |
return foo(self, *args, **kwargs) |
229 | 229 |
except ClientError as ce: |
230 |
if network_id or ce.status == 421: |
|
230 |
if network_id and ce.status == 400: |
|
231 |
raiseCLIError(ce, |
|
232 |
'Network with id %s does not exist' % network_id, |
|
233 |
details=self.about_network_id) |
|
234 |
elif network_id or ce.status == 421: |
|
231 | 235 |
raiseCLIError(ce, |
232 | 236 |
'Network with id %s is in use' % network_id, |
233 | 237 |
details=[ |
Also available in: Unified diff