Ignore changes to images in nova servers

Override all changes to the image in OS::Nova::Server, so that we don't
accidently rebuild them.

Change-Id: I2ec318b9776239b166d9537e5ca10c851d1d219a
Closes-Bug: #1609020
This commit is contained in:
Thomas Herve 2016-08-03 22:35:43 +02:00
parent e7377aaeb1
commit eaf0051441
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,12 @@ class ServerUpdateAllowed(server.Server):
after_props, before_props):
return False
def handle_update(self, json_snippet, tmpl_diff, prop_diff):
prop_diff.pop(self.IMAGE, None)
return super(ServerUpdateAllowed, self).handle_update(json_snippet,
tmpl_diff,
prop_diff)
def resource_mapping():
return {'OS::Nova::Server': ServerUpdateAllowed}