Skip to content

Commit

Permalink
Merge pull request #44 from Anihilakos/master
Browse files Browse the repository at this point in the history
Create_task() Schedule parameter bug. Parameter was not passing corre…
  • Loading branch information
MarioVilas authored Dec 3, 2019
2 parents 69ba407 + 1a6fa17 commit a5368a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openvas_lib/ompv7.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,7 @@ def create_task(self, name, target, config=None, schedule=None, comment="", max_
<target id="%s"/>""" % (name, comment, config, target)

if schedule:
request += """<schedule>%s</schedule>""" % (schedule)

request += """<schedule id= "%s"/>""" % (schedule)

if max_checks or max_hosts:
request += """<preferences>"""
Expand Down

0 comments on commit a5368a3

Please sign in to comment.