Skip to content

Commit a1570f9

Browse files
authored
fix: Added error check while writing the base NNC to the cluster
1 parent 49c8f0c commit a1570f9

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
@@ -1304,7 +1304,8 @@ func InitializeCRDState(ctx context.Context, httpRestService cns.HTTPService, cn
13041304
// Create Node Network Config CRD and update the Home Az field with the cache value from the HomeAz Monitor
13051305
nnc = createBaseNNC(node)
13061306
}
1307-
if err := directcli.Create(ctx, &nnc); err != nil {
1307+
1308+
if err = directcli.Create(ctx, &nnc); err != nil {
13081309
return errors.Wrap(err, "failed to create base NNC")
13091310
}
13101311

0 commit comments

Comments
 (0)