added the needs_arguments method to mail and mongodb task
This commit is contained in:
parent
3d1bfc8453
commit
880c45cd05
2 changed files with 6 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ class MailTask(Task):
|
|||
if "password" in args:
|
||||
self.password = args["password"]
|
||||
|
||||
def needs_arguments(self):
|
||||
return True
|
||||
|
||||
def execute(self, job_information):
|
||||
logger.debug("Executing Mail Task!")
|
||||
|
||||
|
|
|
|||
|
|
@ -55,6 +55,9 @@ class MongodbTask(Task):
|
|||
self.mongo_db = self.mongo_client[self.database]
|
||||
self.mongo_db_collection = self.mongo_db[self.collection]
|
||||
|
||||
def needs_arguments(self):
|
||||
return True
|
||||
|
||||
def execute(self, job_information):
|
||||
data = {"timestamp": str(datetime.datetime.now()),
|
||||
"msg": job_information.get_response_message(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue