Revision 2005b18e kamaki/cli/commands/errors.py

b/kamaki/cli/commands/errors.py
397 397
            except ClientError as ce:
398 398
                ce_msg = ('%s' % ce).lower()
399 399
                if ce.status == 404 or (
400
                    ce.status == 400 and 'metadata' in ce_msg):
401
                        msg = 'No properties with key %s in this image' % key
402
                        raiseCLIError(ce, msg)
400
                        ce.status == 400 and 'metadata' in ce_msg):
401
                    msg = 'No properties with key %s in this image' % key
402
                    raiseCLIError(ce, msg)
403 403
                raise
404 404
        return _raise
405 405

  

Also available in: Unified diff