added BootmanSequenceRecord to allow bootman sequence to be modified at
[monitor.git] / monitor / database / info / action.py
index f324daa..704f733 100644 (file)
@@ -77,6 +77,11 @@ class BlacklistRecord(Entity):
                else:
                        return self.date_created + timedelta(0, self.expires)
 
+class BootmanSequenceRecord(Entity):
+       sequence = Field(String, primary_key=True, default=None)
+       action   = Field(String, default=None)
+       date_created = Field(DateTime,default=datetime.now)
+
 class ActionRecord(Entity):
        @classmethod
        def get_latest_by(cls, **kwargs):
@@ -112,6 +117,8 @@ class ActionRecord(Entity):
        # NOTE: in case an exception is thrown while trying to perform an action.
        error_string = Field(String, default=None)
 
+       log_path = Field(String, default=None)
+
        #issue = ManyToOne('IssueRecord')
        # NOTE: this is the parent relation to fb records.  first create the
        # action record, then append to this value all of the findbad records we