Skip to content

Commit a2e8c7e

Browse files
authored
Merge pull request #18 from Keyfactor/v1.3.2-patch
v1.3.2 Patch
2 parents c20c68d + 8d5300d commit a2e8c7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/certificate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (c *Client) RevokeCert(rvargs *RevokeCertArgs) error {
241241
return errors.New("invalid or nonexistent values required for certificate revocation")
242242
}
243243

244-
if rvargs.EffectiveDate == "" {
244+
if rvargs.EffectiveDate == "" || rvargs.EffectiveDate == "{null}" || rvargs.EffectiveDate == "null" {
245245
rvargs.EffectiveDate = getTimestamp()
246246
}
247247

api/security.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func (c *Client) DeleteSecurityIdentity(id int) error {
111111
return nil
112112
}
113113

114-
func (c *Client) GetSecurityRoles() ([]GetSecurityRolesResponse, error) {
114+
func (c *Client) GetSecurityRoles() (GetSecurityRolesResponse, error) {
115115
log.Println("[INFO] Getting list of Keyfactor security roles")
116116

117117
// Set Keyfactor-specific headers
@@ -134,7 +134,7 @@ func (c *Client) GetSecurityRoles() ([]GetSecurityRolesResponse, error) {
134134
return nil, err
135135
}
136136

137-
var jsonResp []GetSecurityRolesResponse
137+
var jsonResp GetSecurityRolesResponse
138138
err = json.NewDecoder(resp.Body).Decode(&jsonResp)
139139
if err != nil {
140140
return nil, err

0 commit comments

Comments
 (0)