Skip to content

Commit

Permalink
module status struct
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-cvit committed Dec 17, 2024
1 parent e8a56d7 commit 12ce0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclops-ctrl/internal/controller/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (m *Modules) CreateModule(ctx *gin.Context) {

m.telemetryClient.ModuleCreation()

if len(module.GetAnnotations()[v1alpha1.GitOpsWriteRepoAnnotation]) != 0 {
if module.GetAnnotations() != nil && len(module.GetAnnotations()[v1alpha1.GitOpsWriteRepoAnnotation]) != 0 {
err := m.gitWriteClient.Write(module)
if err != nil {
fmt.Println(err)
Expand Down

0 comments on commit 12ce0e6

Please sign in to comment.