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
The following commit(s) were added to refs/heads/DATALAB-2409 by this push:
new 0099f72 [DATALAB-2409]: fixed aws creds check
0099f72 is described below
commit 0099f723eaf261f1e5e3a92a8a8a83da013d493b
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]