Skip to content

Commit d0d45fe

Browse files
authored
fix: Added error check while writing the base NNC to the cluster
1 parent 27808b5 commit d0d45fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cns/service/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,8 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
13081308
// Create Node Network Config CRD and update the Home Az field with the cache value from the HomeAz Monitor
13091309
nnc = createBaseNNC(node)
13101310
}
1311-
if err := directcli.Create(ctx, &nnc); err != nil {
1311+
1312+
if err = directcli.Create(ctx, &nnc); err != nil {
13121313
return errors.Wrap(err, "failed to create base NNC")
13131314
}
13141315

0 commit comments

Comments
 (0)