mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 02:28:12 -03:30
fixing missing colon and missing variable usage
Signed-off-by: Mike McMahon <mike.mcmahon@wavefront.com>
This commit is contained in:
@@ -111,7 +111,7 @@ class Command(NoArgsCommand):
|
|||||||
def cleanup_project_updates(self):
|
def cleanup_project_updates(self):
|
||||||
skipped, deleted = 0, 0
|
skipped, deleted = 0, 0
|
||||||
project_updates = ProjectUpdate.objects.filter(created__lte=self.cutoff)
|
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))
|
pu_display = '"%s" (type %s)' % (unicode(pu), unicode(pu.launch_type))
|
||||||
if pu.status in ('pending', 'waiting', 'running'):
|
if pu.status in ('pending', 'waiting', 'running'):
|
||||||
action_text = 'would skip' if self.dry_run else 'skipping'
|
action_text = 'would skip' if self.dry_run else 'skipping'
|
||||||
@@ -136,7 +136,7 @@ class Command(NoArgsCommand):
|
|||||||
def cleanup_inventory_updates(self):
|
def cleanup_inventory_updates(self):
|
||||||
skipped, deleted = 0, 0
|
skipped, deleted = 0, 0
|
||||||
inventory_updates = InventoryUpdate.objects.filter(created__lte=self.cutoff)
|
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))
|
iu_display = '"%s" (source %s)' % (unicode(iu), unicode(iu.source))
|
||||||
if iu.status in ('pending', 'waiting', 'running'):
|
if iu.status in ('pending', 'waiting', 'running'):
|
||||||
action_text = 'would skip' if self.dry_run else 'skipping'
|
action_text = 'would skip' if self.dry_run else 'skipping'
|
||||||
|
|||||||
Reference in New Issue
Block a user