Revision 81b0838d

b/kamaki/cli/commands/image.py
404 404
        if pclient and not self['metafile_force']:
405 405
            try:
406 406
                pclient.get_object_info(meta_path)
407
                raiseCLIError('Metadata file %s:%s already exists' % (
408
                    container, meta_path))
407
                raiseCLIError(
408
                    'Metadata file %s:%s already exists, abort' % (
409
                        container, meta_path),
410
                    details=['Registration ABORTED', 'Try -f to overwrite'])
409 411
            except ClientError as ce:
410 412
                if ce.status != 404:
411 413
                    raise

Also available in: Unified diff