Check for nil when querying a certificate.
This commit is contained in:
parent
cab750abb1
commit
a010f80382
|
@ -39,6 +39,10 @@ func (s *StepGetCertificate) getCertificateUrl(keyVaultName string, secretName s
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if secret == nil || secret.ID == nil {
|
||||||
|
return "", fmt.Errorf("certificate is nil")
|
||||||
|
}
|
||||||
|
|
||||||
return *secret.ID, err
|
return *secret.ID, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue