From 023431165a851b6e0df8200716d8dea405c30367 Mon Sep 17 00:00:00 2001 From: Mike McMahon Date: Thu, 7 Sep 2017 14:03:18 -0700 Subject: [PATCH] fixing missing colon and missing variable usage Signed-off-by: Mike McMahon --- awx/main/management/commands/cleanup_jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/management/commands/cleanup_jobs.py b/awx/main/management/commands/cleanup_jobs.py index d58ffb97c3..cc621e2b23 100644 --- a/awx/main/management/commands/cleanup_jobs.py +++ b/awx/main/management/commands/cleanup_jobs.py @@ -111,7 +111,7 @@ class Command(NoArgsCommand): def cleanup_project_updates(self): skipped, deleted = 0, 0 project_updates = ProjectUpdate.objects.filter(created__lte=self.cutoff) - for pu in project_updates + for pu in project_updates: pu_display = '"%s" (type %s)' % (unicode(pu), unicode(pu.launch_type)) if pu.status in ('pending', 'waiting', 'running'): action_text = 'would skip' if self.dry_run else 'skipping' @@ -136,7 +136,7 @@ class Command(NoArgsCommand): def cleanup_inventory_updates(self): skipped, deleted = 0, 0 inventory_updates = InventoryUpdate.objects.filter(created__lte=self.cutoff) - for iu in InventoryUpdate.objects.all(): + for iu in inventory_updates: iu_display = '"%s" (source %s)' % (unicode(iu), unicode(iu.source)) if iu.status in ('pending', 'waiting', 'running'): action_text = 'would skip' if self.dry_run else 'skipping'