From a8a358fe4ccf20497514bd46098838a2c5829644 Mon Sep 17 00:00:00 2001 From: cdiep Date: Mon, 27 Apr 2015 17:06:39 -0700 Subject: [PATCH] Fix to store idempotent_id (UUID) in the database. uid was rename to uuid sometime ago. Rename test_result.uid to the corect name test_result.uuid so that UUID data can be stored in the database. Change-Id: I6e6b01cf44a049a0221620bd53221554f383cc64 --- refstack/db/sqlalchemy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refstack/db/sqlalchemy/api.py b/refstack/db/sqlalchemy/api.py index abfd3df3..a929e0cb 100644 --- a/refstack/db/sqlalchemy/api.py +++ b/refstack/db/sqlalchemy/api.py @@ -72,7 +72,7 @@ def store_results(results): test_result = models.TestResults() test_result.test_id = test_id test_result.name = result['name'] - test_result.uid = result.get('uuid', None) + test_result.uuid = result.get('uuid', None) test.results.append(test_result) for k, v in six.iteritems(results.get('metadata', {})): meta = models.TestMeta()