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 09c462bdc20d3628760653778dac4ff1c070e4b3
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Oct 12 15:17:23 2021 +0300

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

diff --git a/infrastructure-provisioning/scripts/deploy_datalab.py 
b/infrastructure-provisioning/scripts/deploy_datalab.py
index f5a82be..22d7b7d 100644
--- a/infrastructure-provisioning/scripts/deploy_datalab.py
+++ b/infrastructure-provisioning/scripts/deploy_datalab.py
@@ -328,9 +328,8 @@ if __name__ == "__main__":
     parser = build_parser()
     args = parser.parse_args()
 
-    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')
+    if args.conf_cloud_provider == 'aws' and 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')
 
     if not args.workspace_path:
         print("Workspace path isn't set, using current directory: 
{}".format(os.environ['PWD']))

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

Reply via email to