Skip to content

Commit 97744fa

Browse files
committed
Fixed check of ip when empty, and already enrolled.
1 parent e7e0f04 commit 97744fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/agent/enrollment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func updateEnrollmentRequest(agent *agentClient, cmd *cobra.Command) {
175175
}
176176

177177
l.Debugf("ip compare %s <=> %s", ip, status.AssignedIP)
178-
if ip != status.AssignedIP {
178+
if ip != status.AssignedIP && ip != "" {
179179
diff = true
180180
l.Debugf("diff on ip")
181181
}

0 commit comments

Comments
 (0)