mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Use the proper attr when saving instance name
Fixes: https://trello.com/c/24OoIyyf
This commit is contained in:
@@ -88,7 +88,7 @@ class Command(BaseCommand):
|
|||||||
print('unable to find deleted timestamp in %s field' % name_field)
|
print('unable to find deleted timestamp in %s field' % name_field)
|
||||||
else:
|
else:
|
||||||
aged_date = dt - datetime.timedelta(days=self.days)
|
aged_date = dt - datetime.timedelta(days=self.days)
|
||||||
instance.name = name_prefix + aged_date.isoformat() + name_append
|
setattr(instance, name_field, name_prefix + aged_date.isoformat() + name_append)
|
||||||
instance.save()
|
instance.save()
|
||||||
#print("Aged %s" % instance.name)
|
#print("Aged %s" % instance.name)
|
||||||
n_aged_items += 1
|
n_aged_items += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user