Skip to content

Commit

Permalink
Fixed check of ip when empty, and already enrolled.
Browse files Browse the repository at this point in the history
  • Loading branch information
SlyngDK committed Nov 27, 2021
1 parent e7e0f04 commit 97744fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/agent/enrollment.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func updateEnrollmentRequest(agent *agentClient, cmd *cobra.Command) {
}

l.Debugf("ip compare %s <=> %s", ip, status.AssignedIP)
if ip != status.AssignedIP {
if ip != status.AssignedIP && ip != "" {
diff = true
l.Debugf("diff on ip")
}
Expand Down

0 comments on commit 97744fa

Please sign in to comment.