diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 323696bf7..c9735bcb1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,19 @@ dcicutils Change Log ---------- +1.8.4 +===== + +**PR 127: Beanstalk Bugfix** + +* Parses Beanstalk API correctly and passes region. + +1.8.3 +===== + +**No PR: Just fixes to GA PyPi deploy** + + 1.8.2 ===== diff --git a/dcicutils/beanstalk_utils.py b/dcicutils/beanstalk_utils.py index 3ad743c92..ad6b3226e 100755 --- a/dcicutils/beanstalk_utils.py +++ b/dcicutils/beanstalk_utils.py @@ -393,9 +393,11 @@ def _get_beanstalk_configuration_settings(env): } """ try: - client = boto3.client('elasticbeanstalk') + client = boto3.client('elasticbeanstalk', region_name=REGION) config = client.describe_configuration_settings(ApplicationName='4dn-web', EnvironmentName=env) - options = config['ConfigurationSettings']['OptionSettings'] # guaranteed to be present + # These are guaranteed to be present + [settings] = config['ConfigurationSettings'] + options = settings['OptionSettings'] return options except ClientError: logger.error('Error encountered attempting to get environment settings for %s' % env) diff --git a/pyproject.toml b/pyproject.toml index 4349dba5b..8f1717e7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dcicutils" -version = "1.8.3" +version = "1.8.4" description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources" authors = ["4DN-DCIC Team "] license = "MIT"