Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions platformshconfig/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ def on_production(self):

if not self.is_valid_platform() and not self.in_build():
return False
prod_branch = 'production' if self.on_dedicated() else 'master'
return self['BRANCH'] == prod_branch
platform_environment_type = os.environ['PLATFORM_ENVIRONMENT_TYPE']
return platform_environment_type == 'production'

def register_formatter(self, name, formatter):
"""Adds a credential formatter to the configuration.
Expand Down