You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parser.add_argument("-a","--agree-anonymous-data-collect", type=str, default='yes',help="Opt in for anonymous one time data collection.(yes/no). Only collects region name, creation time and uuid portion of the stack id (for uniqueness).")
81
-
97
+
parser.add_argument("-a","--agree-anonymous-data-collect", type=str, default='yes',help="Opt-in for anonymous one time data collection.(yes/no). Only collects region name, creation time, stack name and uuid portion of the stack id (for uniqueness).")
82
98
83
99
# process arguments
84
100
args=parser.parse_args()
85
101
86
-
#region and stack ids
102
+
# dictionary for region and stack ids
87
103
stack_regions= {}
88
104
89
105
globalstackname
@@ -114,7 +130,10 @@ def main():
114
130
ifnotregionmatch:
115
131
print ("Please provide a valid region name in region list. For example: us-east-1. Incorrect value", region)
116
132
sys.exit(1)
117
-
133
+
elifcheckstackname(region):
134
+
print ("Stack Name", stackname, "already exists in region", region,". Quitting due to stack name conflict. Please choose another stack name.")
135
+
sys.exit(1)
136
+
118
137
119
138
# print (sys.platform)
120
139
@@ -125,11 +144,13 @@ def main():
125
144
126
145
stackid=buildstack (region)
127
146
stackids=stackid.split('/')
128
-
stackid=stackids[2]
147
+
stackid=stackids[2]# split stackid to isolate the uuid portion
print("Started building stackid",stackid,"in Region",region, "at:",buildtime)
152
+
153
+
# This block gathers anonymous data on the stack, if consent is provided. Only data collected is name of the stack, region, timestamp and only UUID part of the stackid.
0 commit comments