@@ -52,17 +52,15 @@ func (c *Client) writeAuditLog(action string, details string) error {
5252
5353 c .auditLogIdCounter ++
5454 c .auditLogs = append (c .auditLogs , client.AuditLog {
55- c .auditLogIdCounter ,
56- time .Now (),
57-
58- client.AuditLogMetadata {
59- hostname ,
60- osuser .Username ,
61- "testui" ,
55+ Id : c .auditLogIdCounter ,
56+ Timestamp : time .Now (),
57+ Metadata : client.AuditLogMetadata {
58+ Hostname : hostname ,
59+ Hostuser : osuser .Username ,
60+ Referer : "testui" ,
6261 },
63-
64- action ,
65- details ,
62+ Action : action ,
63+ Details : details ,
6664 })
6765
6866 return nil
@@ -449,7 +447,7 @@ func (c *Client) DeployAccounts(ctx context.Context, accountIds ...client.Accoun
449447 if ! ok {
450448 deployProgress .Accounts [account .Id ].Status = "error"
451449 deployProgress .Accounts [account .Id ].Progress = 1
452- deployProgress .Accounts [account .Id ].Err = fmt .Errorf ("Some weird error on account with id %v" , account .Id )
450+ deployProgress .Accounts [account .Id ].Err = fmt .Errorf ("some weird error on account with id %v" , account .Id )
453451 deployProgressChan <- deployProgress
454452 continue
455453 }
@@ -564,7 +562,7 @@ func (c *Client) VerifyAccounts(ctx context.Context, accountIds ...client.Accoun
564562 if ! ok {
565563 verifyProgress .Accounts [account .Id ].Status = "error"
566564 verifyProgress .Accounts [account .Id ].Progress = 1
567- verifyProgress .Accounts [account .Id ].Err = fmt .Errorf ("Some weird error on account with id %v" , account .Id )
565+ verifyProgress .Accounts [account .Id ].Err = fmt .Errorf ("some weird error on account with id %v" , account .Id )
568566 verifyProgressChan <- verifyProgress
569567 continue
570568 }
0 commit comments