Skip to content

Commit c642bab

Browse files
authored
Merge pull request #158 from rackerlabs/issue157-change-ScheduledScan.scan_command-from-CharField-to-TextField
Change scheduled scan.scan command from char field to text field
2 parents 03a8d44 + 6edb39d commit c642bab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

master/django_scantron/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.19"
1+
__version__ = "1.20"

master/django_scantron/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class ScheduledScan(models.Model):
220220
)
221221
start_datetime = models.DateTimeField(verbose_name="Scheduled scan start date and time")
222222
scan_binary = models.CharField(max_length=7, default="nmap", verbose_name="Scan binary")
223-
scan_command = models.CharField(unique=False, max_length=1024, verbose_name="Scan command")
223+
scan_command = models.TextField(unique=False, verbose_name="Scan command")
224224
scan_command_id = models.IntegerField(
225225
validators=[MinValueValidator(1, message="Scan command ID must be greater than 0")],
226226
verbose_name="Scan command ID",

master/scan_scheduler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def main():
9797
scan_binary = scan.site.scan_command.scan_binary
9898

9999
# The ScheduledScan model acts as the sanitized endpoint for agents to determine scan jobs. We don't want to
100-
# expose the other models, so we populate that ScheduledScan mdoel instead. The actual exposed fields for the
100+
# expose the other models, so we populate that ScheduledScan model instead. The actual exposed fields for the
101101
# API are controlled using master/api/serializers.py.
102102

103103
# start_datetime is a DateTimeField in ScheduledScan, but the Scan model only contains start_time (TimeField)

0 commit comments

Comments
 (0)