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:
parent
e7377aaeb1
commit
eaf0051441
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue