This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2588 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit db21bcce38ab494a6186b750036f8dd8526a3f89 Author: leonidfrolov <[email protected]> AuthorDate: Thu Nov 11 15:07:58 2021 +0200 [DATALAB-2588]: fixed aws billing bucket arguments definition --- infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py b/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py index bc16c24..efc3a75 100644 --- a/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py +++ b/infrastructure-provisioning/src/general/scripts/aws/ssn_configure.py @@ -105,13 +105,13 @@ if __name__ == "__main__": ssn_conf['aws_security_groups_ids'] = os.environ['aws_security_groups_ids'] else: ssn_conf['aws_security_groups_ids'] = datalab.meta_lib.get_security_group_by_name(ssn_conf['sg_name']) - if 'aws_billing_bucket' in os.environ and os.environ['aws_billing_bucket'] == '': + if 'aws_billing_bucket' in os.environ and os.environ['aws_billing_bucket'] != '': ssn_conf['billing_enabled'] = True ssn_conf['aws_billing_bucket'] = os.environ['aws_billing_bucket'] else: ssn_conf['billing_enabled'] = False ssn_conf['aws_billing_bucket'] = 'None' - if 'aws_report_path' in os.environ and os.environ['aws_report_path'] == '': + if 'aws_report_path' in os.environ and os.environ['aws_report_path'] != '': ssn_conf['aws_report_path'] = os.environ['aws_report_path'] else: ssn_conf['aws_report_path'] = '' --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
