mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58:45 -03:30
Merge pull request #6725 from ryanpetrello/fix-isolated-heartbeat
properly update the heartbeat timestamp for isolated nodes
This commit is contained in:
@@ -357,7 +357,7 @@ class IsolatedManager(object):
|
||||
continue
|
||||
if 'capacity' in task_result:
|
||||
instance.capacity = int(task_result['capacity'])
|
||||
instance.save(update_fields=['capacity'])
|
||||
instance.save(update_fields=['capacity', 'modified'])
|
||||
else:
|
||||
logger.warning('Could not update capacity of {}, msg={}'.format(
|
||||
instance.hostname, task_result.get('msg', 'unknown failure')))
|
||||
|
||||
Reference in New Issue
Block a user