Set OperationLog operation_type to be a string

OperationLog's operation_type is currently set to either 'restore' or
'protect'. Change operation_type to be a string in OperationLog object.

Change-Id: I9dbf5658de2b73e74695a3c5af82f6ebde207081
This commit is contained in:
Yuval Brik 2017-08-13 16:33:56 +03:00
parent 19917ee7f3
commit 283586f264
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class OperationLog(base.KarborPersistentObject, base.KarborObject,
fields = {
'id': fields.UUIDField(),
'project_id': fields.UUIDField(),
'operation_type': fields.UUIDField(),
'operation_type': fields.StringField(),
'checkpoint_id': fields.UUIDField(nullable=True),
'plan_id': fields.UUIDField(nullable=True),
'provider_id': fields.UUIDField(nullable=True),