git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added BootmanSequenceRecord to allow bootman sequence to be modified at
[monitor.git]
/
monitor
/
database
/
info
/
action.py
diff --git
a/monitor/database/info/action.py
b/monitor/database/info/action.py
index
f324daa
..
704f733
100644
(file)
--- a/
monitor/database/info/action.py
+++ b/
monitor/database/info/action.py
@@
-77,6
+77,11
@@
class BlacklistRecord(Entity):
else:
return self.date_created + timedelta(0, self.expires)
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):
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)
# 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
#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