mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Use the proper attr when saving instance name
Fixes: https://trello.com/c/24OoIyyf
This commit is contained in:
parent
1abb2f7dfd
commit
6d6d9de379
@ -88,7 +88,7 @@ class Command(BaseCommand):
|
||||
print('unable to find deleted timestamp in %s field' % name_field)
|
||||
else:
|
||||
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()
|
||||
#print("Aged %s" % instance.name)
|
||||
n_aged_items += 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user