diff options
Diffstat (limited to 'heat/scaling/cooldown.py')
-rw-r--r-- | heat/scaling/cooldown.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/heat/scaling/cooldown.py b/heat/scaling/cooldown.py index 6d1784145..315b543c3 100644 --- a/heat/scaling/cooldown.py +++ b/heat/scaling/cooldown.py @@ -69,3 +69,9 @@ class CooldownMixin(object): self.metadata_set(metadata) except exception.NotFound: pass + + def handle_metadata_reset(self): + metadata = self.metadata_get() + if 'scaling_in_progress' in metadata: + metadata['scaling_in_progress'] = False + self.metadata_set(metadata) |