The best solution is to get update_endpoint supported upstream.
The easiest way to solve this in puppet is to introduce a variable that tells us if it has already been recreated:
def public_url=(value) destroy unless @already_recreated endpoint_hash[resource[:name]][:public_url] = value @already_recreated = true end create end
The best solution is to get update_endpoint supported upstream.
The easiest way to solve this in puppet is to introduce a variable that tells us if it has already been recreated:
def public_url=(value)
endpoint_ hash[resource[ :name]] [:public_ url] = value
@already_ recreated = true
destroy
unless @already_recreated
end
create
end