From 4f33a01b0246a9287996afe43943786d3f3637ac Mon Sep 17 00:00:00 2001 From: Chris Church Date: Mon, 14 Jul 2014 18:33:12 -0400 Subject: [PATCH] Removed print statement that was just printing 'JHS: Host: Host object' for every object when running migration. --- awx/main/migrations/0047_v200_changes.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/awx/main/migrations/0047_v200_changes.py b/awx/main/migrations/0047_v200_changes.py index 0b46828911..9980887712 100644 --- a/awx/main/migrations/0047_v200_changes.py +++ b/awx/main/migrations/0047_v200_changes.py @@ -8,15 +8,12 @@ from django.db import models class Migration(DataMigration): def forwards(self, orm): - idx = 0 - for jhs in orm.JobHostSummary.objects.all(): - print "JHS: Host: " + str(jhs.host) + for idx, jhs in enumerate(orm.JobHostSummary.objects.all()): if jhs.host is not None and jhs.host.active: jhs.host_name = jhs.host.name else: - jhs.host_name = "tower_deleted_host-%s" % str(idx) + jhs.host_name = "tower_deleted_host-%s" % unicode(idx) jhs.save() - idx += 1 def backwards(self, orm): print("Not reversing jobhoststatus host_name field")