mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
fix: 修复部署到华为obs 报错的bug
This commit is contained in:
@@ -170,13 +170,15 @@ export class HauweiDeployCertToOBS extends AbstractTaskPlugin {
|
||||
const params:any = {
|
||||
Bucket: bucket,
|
||||
DomainName: domain,
|
||||
Name: this.buildCertName( domain)
|
||||
DomainBody:{
|
||||
Name: this.buildCertName( domain),
|
||||
}
|
||||
};
|
||||
if (typeof cert === 'string'){
|
||||
params.CertificateId= cert
|
||||
params.DomainBody.CertificateId= cert
|
||||
}else{
|
||||
params.Certificate= cert.crt
|
||||
params.PrivateKey = cert.key
|
||||
params.DomainBody.Certificate= cert.crt
|
||||
params.DomainBody.PrivateKey = cert.key
|
||||
}
|
||||
const res = await obsClient.setBucketCustomDomain(params)
|
||||
this.checkRet(res)
|
||||
|
||||
Reference in New Issue
Block a user