Skip to content

Commit 0283572

Browse files
committed
fix review findings
Signed-off-by: sivchari <[email protected]>
1 parent b3ceb94 commit 0283572

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

test/infrastructure/docker/api/v1alpha3/conversion.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ func (src *DockerCluster) ConvertTo(dstRaw conversion.Hub) error {
5757

5858
if ok {
5959
RestoreDockerClusterSpec(&restored.Spec, &dst.Spec)
60+
RestoreDockerClusterStatus(&restored.Status, &dst.Status)
6061
}
6162

62-
RestoreDockerClusterStatus(&restored.Status, &dst.Status)
63-
6463
return nil
6564
}
6665

@@ -118,10 +117,9 @@ func (src *DockerMachine) ConvertTo(dstRaw conversion.Hub) error {
118117

119118
if ok {
120119
RestoreDockerMachineSpec(&restored.Spec, &dst.Spec)
120+
RestoreDockerMachineStatus(&restored.Status, &dst.Status)
121121
}
122122

123-
RestoreDockerMachineStatus(&restored.Status, &dst.Status)
124-
125123
return nil
126124
}
127125

test/infrastructure/docker/api/v1alpha4/conversion.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ func (src *DockerCluster) ConvertTo(dstRaw conversion.Hub) error {
5757

5858
if ok {
5959
RestoreDockerClusterSpec(&restored.Spec, &dst.Spec)
60+
RestoreDockerClusterStatus(&restored.Status, &dst.Status)
6061
}
6162

62-
RestoreDockerClusterStatus(&restored.Status, &dst.Status)
63-
6463
return nil
6564
}
6665

@@ -149,10 +148,9 @@ func (src *DockerMachine) ConvertTo(dstRaw conversion.Hub) error {
149148

150149
if ok {
151150
RestoreDockerMachineSpec(&restored.Spec, &dst.Spec)
151+
RestoreDockerMachineStatus(&restored.Status, &dst.Status)
152152
}
153153

154-
RestoreDockerMachineStatus(&restored.Status, &dst.Status)
155-
156154
return nil
157155
}
158156

0 commit comments

Comments
 (0)