diff --git a/devops-service/db/mongo/models/stack/stack_base.rb b/devops-service/db/mongo/models/stack/stack_base.rb index f4b0a9a..9216f6e 100644 --- a/devops-service/db/mongo/models/stack/stack_base.rb +++ b/devops-service/db/mongo/models/stack/stack_base.rb @@ -72,6 +72,11 @@ module Devops provider_instance.stack_resource(self, resource_id) end + # there is only one way to update stack status right now: + # stack.sync_details! + # mongo.stack_update(stack) + # It's because syncing updates @details instance variable, but doesn'not persist it. + # Also that's why we need to have "details" key in #to_mongo_hash def stack_status raise 'override me' end