Skip to content

Commit 4857bd0

Browse files
committed
fix: allow robot api and node name diff
1 parent ac208a5 commit 4857bd0

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

hcloud/instances_util.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func getRobotServerByID(i *instances, id int, node *corev1.Node) (*hrobotmodels.
111111
return nil, nil
112112
}
113113

114-
// check whether name matches - otherwise this server does not belong to the respective node anymore
114+
// check whether name matches
115115
if server.Name != node.Name {
116116
i.recorder.Eventf(
117117
node,
@@ -121,10 +121,8 @@ func getRobotServerByID(i *instances, id int, node *corev1.Node) (*hrobotmodels.
121121
node.ObjectMeta.Name,
122122
server.Name,
123123
)
124-
return nil, nil
125124
}
126125

127-
// return nil, nil if server could not be found
128126
return server, nil
129127
}
130128

0 commit comments

Comments
 (0)