1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

properly update the heartbeat timestamp for isolated nodes

This commit is contained in:
Ryan Petrello 2017-06-26 11:03:56 -04:00
parent 2c98294035
commit 5adc1c603a

View File

@ -357,7 +357,7 @@ class IsolatedManager(object):
continue continue
if 'capacity' in task_result: if 'capacity' in task_result:
instance.capacity = int(task_result['capacity']) instance.capacity = int(task_result['capacity'])
instance.save(update_fields=['capacity']) instance.save(update_fields=['capacity', 'modified'])
else: else:
logger.warning('Could not update capacity of {}, msg={}'.format( logger.warning('Could not update capacity of {}, msg={}'.format(
instance.hostname, task_result.get('msg', 'unknown failure'))) instance.hostname, task_result.get('msg', 'unknown failure')))