1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00
This commit is contained in:
Chris Meyers 2015-06-23 07:58:01 -04:00
parent bd61261454
commit 41de9c9f9f

View File

@ -92,13 +92,11 @@ class Command(BaseCommand):
aged_ts_append = aged_date.strftime('%Y-%m-%dT%H:%M:%S.%f') aged_ts_append = aged_date.strftime('%Y-%m-%dT%H:%M:%S.%f')
else: else:
aged_ts_append = aged_date.isoformat() + name_append aged_ts_append = aged_date.isoformat() + name_append
setattr(instance, name_field, name_prefix + aged_ts_append) setattr(instance, name_field, name_prefix + aged_ts_append)
instance.save() instance.save()
#print("Aged %s" % getattr(instance, name_field)) #print("Aged %s" % getattr(instance, name_field))
n_aged_items += 1 n_aged_items += 1
return n_aged_items return n_aged_items
@transaction.atomic @transaction.atomic