From a74f2a3ca4e26c451a002f9a89f3ba4ac4a083c4 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Wed, 18 Aug 2010 18:32:08 -0700 Subject: fix report state --- nova/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/models.py') diff --git a/nova/models.py b/nova/models.py index 70010eab1..d0b66d9b7 100644 --- a/nova/models.py +++ b/nova/models.py @@ -143,7 +143,7 @@ class Daemon(Base, NovaBase): id = Column(Integer, primary_key=True) node_name = Column(String(255)) #, ForeignKey('physical_node.id')) binary = Column(String(255)) - report_count = Column(Integer) + report_count = Column(Integer, nullable=False, default=0) @classmethod def find_by_args(cls, node_name, binary): -- cgit