@@ -55,14 +55,14 @@ export async function deactivateCertificateCommand(
55
55
try {
56
56
await node . iot . updateCertificate ( { certificateId : certId , newStatus : STATUS_INACTIVE } )
57
57
58
- getLogger ( ) . info ( `Successfully deactivated certificate ${ certId } ` )
58
+ getLogger ( ) . info ( `deactivated certificate: ${ certId } ` )
59
59
window . showInformationMessage (
60
- localize ( 'AWS.iot.deactivateCert.success' , 'Deactivated {0}' , node . certificate . id )
60
+ localize ( 'AWS.iot.deactivateCert.success' , 'Deactivated: {0}' , node . certificate . id )
61
61
)
62
62
} catch ( e ) {
63
63
getLogger ( ) . error ( `Failed to deactivate certificate ${ certId } : %O` , e )
64
64
showViewLogsMessage (
65
- localize ( 'AWS.iot.deactivateCert.error' , 'Failed to deactivate {0}' , node . certificate . id ) ,
65
+ localize ( 'AWS.iot.deactivateCert.error' , 'Failed to deactivate: {0}' , node . certificate . id ) ,
66
66
window
67
67
)
68
68
}
@@ -111,12 +111,12 @@ export async function activateCertificateCommand(
111
111
try {
112
112
await node . iot . updateCertificate ( { certificateId : certId , newStatus : STATUS_ACTIVE } )
113
113
114
- getLogger ( ) . info ( `Successfully activated certificate ${ certId } ` )
115
- window . showInformationMessage ( localize ( 'AWS.iot.activateCert.success' , 'Activated {0}' , node . certificate . id ) )
114
+ getLogger ( ) . info ( `activated certificate: ${ certId } ` )
115
+ window . showInformationMessage ( localize ( 'AWS.iot.activateCert.success' , 'Activated: {0}' , node . certificate . id ) )
116
116
} catch ( e ) {
117
117
getLogger ( ) . error ( `Failed to activate certificate ${ certId } : %O` , e )
118
118
showViewLogsMessage (
119
- localize ( 'AWS.iot.activateCert.error' , 'Failed to activate {0}' , node . certificate . id ) ,
119
+ localize ( 'AWS.iot.activateCert.error' , 'Failed to activate: {0}' , node . certificate . id ) ,
120
120
window
121
121
)
122
122
}
@@ -157,15 +157,15 @@ export async function revokeCertificateCommand(
157
157
return
158
158
}
159
159
160
- getLogger ( ) . info ( `Revoking certificate ${ certId } ` )
160
+ getLogger ( ) . info ( `Revoking certificate: ${ certId } ` )
161
161
try {
162
162
await node . iot . updateCertificate ( { certificateId : certId , newStatus : STATUS_REVOKED } )
163
163
164
- getLogger ( ) . info ( `Successfully revoked certificate ${ certId } ` )
165
- window . showInformationMessage ( localize ( 'AWS.iot.revokeCert.success' , 'Revoked {0}' , node . certificate . id ) )
164
+ getLogger ( ) . info ( `revoked certificate: ${ certId } ` )
165
+ window . showInformationMessage ( localize ( 'AWS.iot.revokeCert.success' , 'Revoked: {0}' , node . certificate . id ) )
166
166
} catch ( e ) {
167
167
getLogger ( ) . error ( `Failed to revoke certificate ${ certId } : %O` , e )
168
- showViewLogsMessage ( localize ( 'AWS.iot.revokeCert.error' , 'Failed to revoke {0}' , node . certificate . id ) , window )
168
+ showViewLogsMessage ( localize ( 'AWS.iot.revokeCert.error' , 'Failed to revoke: {0}' , node . certificate . id ) , window )
169
169
}
170
170
171
171
/* Refresh both things and certificates nodes so the status is updated in
0 commit comments