This commit is contained in:
parent
b00f5e9777
commit
7eac1db475
4 changed files with 111 additions and 5 deletions
|
@ -77,7 +77,7 @@ func ImportRemoteAccount(targetName string) (string, error) {
|
|||
}
|
||||
defer response.Body.Close()
|
||||
body, _ := io.ReadAll(response.Body)
|
||||
log.Trace().
|
||||
log.Debug().
|
||||
Int("status", response.StatusCode).
|
||||
Bytes("body", body).
|
||||
Any("headers", response.Header).
|
||||
|
@ -394,7 +394,7 @@ func ImportRemoteServer(host string) (uint, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if nodeAdmins, ok := data.Metadata["nodeAdmins"].([]map[string]any); ok {
|
||||
if nodeAdmins, ok := data.Metadata["nodeAdmins"].([]map[string]any); ok && len(nodeAdmins) > 0 {
|
||||
log.Debug().Msg("Node admins url found")
|
||||
targets := sliceutils.Filter(
|
||||
existingEntry.Metadata,
|
||||
|
@ -530,7 +530,7 @@ func ImportRemoteServer(host string) (uint, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if staffAccounts, ok := data.Metadata["nodeAdmins"].([]any); ok {
|
||||
if staffAccounts, ok := data.Metadata["nodeAdmins"].([]any); ok && len(staffAccounts) > 0 {
|
||||
log.Debug().Msg("Node admins url found")
|
||||
targets := sliceutils.Filter(
|
||||
existingEntry.Metadata,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue