mirror of https://github.com/certd/certd
perf: gcore flush plugin ssl_id改为必填项
parent
f4ff34224c
commit
4b90972341
|
@ -22,6 +22,7 @@ export class GcoreflushPlugin extends AbstractTaskPlugin {
|
||||||
certName!: string;
|
certName!: string;
|
||||||
@TaskInput({
|
@TaskInput({
|
||||||
title: '证书ID',
|
title: '证书ID',
|
||||||
|
required:true,
|
||||||
})
|
})
|
||||||
ssl_id!: string;
|
ssl_id!: string;
|
||||||
|
|
||||||
|
@ -66,6 +67,10 @@ export class GcoreflushPlugin extends AbstractTaskPlugin {
|
||||||
|
|
||||||
async execute(): Promise<void> {
|
async execute(): Promise<void> {
|
||||||
const { cert, accessId } = this;
|
const { cert, accessId } = this;
|
||||||
|
|
||||||
|
if(!this.ssl_id){
|
||||||
|
throw new Error('请填写要刷新的证书ID');
|
||||||
|
}
|
||||||
const access = (await this.getAccess(accessId)) as GcoreAccess;
|
const access = (await this.getAccess(accessId)) as GcoreAccess;
|
||||||
let otp = null;
|
let otp = null;
|
||||||
if (access.otpkey) {
|
if (access.otpkey) {
|
||||||
|
|
Loading…
Reference in New Issue