94
94
on_errors = self.on_errors
95
95
units_in_error = self.units_in_error
96
96
for unit_name, data in self.units.items():
101
101
# 'Status' has been removed from newer versions of Juju.
102
102
# Respond with the closest status parameter, translating it
103
103
# through the _status_map. If the status value is not in
104
104
# _status_map, just use the original value.
108
109
if unit_name not in units_in_error:
109
110
units_in_error.append(unit_name)
113
114
if new_errors and goal_state != 'removed' and callable(on_errors):