This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2409
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit bef2edcca9bbd9a669ee67074c3cb7f8f167e607
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Oct 12 15:15:40 2021 +0300

    [DATALAB-2409]: fixed aws creds check
---
 infrastructure-provisioning/scripts/deploy_datalab.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/scripts/deploy_datalab.py 
b/infrastructure-provisioning/scripts/deploy_datalab.py
index 0cafbe6..f5a82be 100644
--- a/infrastructure-provisioning/scripts/deploy_datalab.py
+++ b/infrastructure-provisioning/scripts/deploy_datalab.py
@@ -328,7 +328,7 @@ if __name__ == "__main__":
     parser = build_parser()
     args = parser.parse_args()
 
-    if args.aws_secret_access_key or args.aws_access_key:
+    if args.aws_secret_access_key or args.aws_access_key and 
args.conf_cloud_provider == 'aws':
         if not (args.aws_secret_access_key and args.aws_access_key):
             sys.exit('Please provide both arguments: --aws_secret_access_key 
and --aws_access_key')
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to