File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -179,9 +179,10 @@ def process_certificate(payload):
179179 print ("Certificate [" + fingerprint + "] not found in IoT Core. Importing." )
180180
181181 try :
182+ print ("Importing certificate." )
182183 response = iot_client .register_certificate_without_ca (certificatePem = certificateText .decode ('ascii' ),
183184 status = 'ACTIVE' )
184-
185+ print ( "Certificate imported." )
185186 return response .get ("certificateId" )
186187 except botocore .exceptions .ClientError as e :
187188 if e .response ['Error' ]['Code' ] == 'ThrottlingException' :
@@ -191,7 +192,7 @@ def process_certificate(payload):
191192 print ("ERROR: There is a deployment problem with the attached Role. Unable to reach IoT Core object." )
192193 return None
193194 except BaseException as e :
194- print ("exception occurred: {}" .format (e ))
195+ print ("Base exception occurred: {}" .format (e ))
195196
196197 return None
197198
You can’t perform that action at this time.
0 commit comments