You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/10/12 14:08:41 UTC
[incubator-datalab] 06/08: [DATALAB-2409]: fixed aws creds check
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 <fr...@gmail.com>
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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org