Skip to content

Commit e490158

Browse files
author
JRJ
authored
add logic to all inputs to strip trailing spaces
1 parent e53ce69 commit e490158

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

samples/features/sql-big-data-cluster/deployment/aks/deploy-sql-big-data-aks.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,26 @@ def executeCmd (cmd):
2222
#
2323
# MUST INPUT THESE VALUES!!!!!
2424
#
25-
SUBSCRIPTION_ID = input("Provide your Azure subscription ID:")
26-
GROUP_NAME = input("Provide Azure resource group name to be created:")
27-
DOCKER_USERNAME = input("Provide your Docker username:")
28-
DOCKER_PASSWORD = getpass.getpass("Provide your Docker password:")
25+
SUBSCRIPTION_ID = input("Provide your Azure subscription ID:").strip()
26+
GROUP_NAME = input("Provide Azure resource group name to be created:").strip()
27+
DOCKER_USERNAME = input("Provide your Docker username:").strip()
28+
DOCKER_PASSWORD = getpass.getpass("Provide your Docker password:").strip()
2929

3030
#
3131
# Optionally change these configuration settings
3232
#
33-
AZURE_REGION=input("Provide Azure region - Press ENTER for using `westus`:") or "westus"
34-
VM_SIZE=input("Provide VM size for the AKS cluster - Press ENTER for using `Standard_L8s`:") or "Standard_L8s"
35-
AKS_NODE_COUNT=input("Provide number of worker nodes for AKS cluster - Press ENTER for using `1`:") or "1"
33+
AZURE_REGION=input("Provide Azure region - Press ENTER for using `westus`:").strip() or "westus"
34+
VM_SIZE=input("Provide VM size for the AKS cluster - Press ENTER for using `Standard_L8s`:").strip() or "Standard_L8s"
35+
AKS_NODE_COUNT=input("Provide number of worker nodes for AKS cluster - Press ENTER for using `1`:").strip() or "1"
3636

3737
#This is both Kubernetes cluster name and SQL Big Data cluster name
38-
CLUSTER_NAME=input("Provide name of AKS cluster and SQL big data cluster - Press ENTER for using `sqlbigdata`:") or "sqlbigdata"
38+
CLUSTER_NAME=input("Provide name of AKS cluster and SQL big data cluster - Press ENTER for using `sqlbigdata`:").strip() or "sqlbigdata"
3939

4040
#This password will be use for Controller user, Knox user and SQL Server Master SA accounts
41-
PASSWORD=input("Provide password to be used for Controller user, Knox user and SQL Server Master SA accounts - Press ENTER for using `MySQLBigData2019`:") or "MySQLBigData2019"
42-
CONTROLLER_USERNAME=input("Provide username to be used for Controller user - Press ENTER for using `admin`:") or "admin"
41+
CONTROLLER_USERNAME=input("Provide username to be used for Controller user - Press ENTER for using `admin`:").strip() or "admin"
42+
PASSWORD = getpass.getpass("Provide password to be used for Controller user, Knox user and SQL Server Master SA accounts - Press ENTER for using `MySQLBigData2019`").strip() or "MySQLBigData2019"
4343

44-
#
44+
#docker registry details
4545
DOCKER_REGISTRY="private-repo.microsoft.com"
4646
DOCKER_REPOSITORY="mssql-private-preview"
4747
DOCKER_IMAGE_TAG="ctp3.1"

0 commit comments

Comments
 (0)