Merge "Read tag name instead of ID"

This commit is contained in:
Jenkins 2015-04-24 00:56:14 +00:00 committed by Gerrit Code Review
commit 1b0ac0a10c

View File

@ -327,7 +327,7 @@ def _populate_metadata(meta, metadata_path=None, merge=False,
'name': tag.get('name'),
'namespace_id': namespace_id,
}
tag_id = _get_resource_id(tags_table, namespace_id, tag['id'])
tag_id = _get_resource_id(tags_table, namespace_id, tag['name'])
if not tag_id:
values.update({'created_at': timeutils.utcnow()})
_insert_data_to_db(tags_table, values)