这个规则的用途是这项资源在stack-update时,是否要做替换的规则,这个规则有两个可选项:
'REPLACE_ALWAYS 不管属性是否有变化都要做替换。
AUTO,只要是允许更新的属性,只会做已有port的更改,而不是做替换。
默认是:AUTO
但是从heat的代码上看,最后其实也没看到判断这个policy:UpdateReplace(self);还需再看代码。
needs_replace->
# Do not reference this here - in the future it will move back to its
# correct (and original) location in heat.engine.resource. Reference it as
# heat.engine.resource.UpdateReplace instead.
class UpdateReplace(Exception