@@ -110,7 +110,7 @@ func (s *Service) ReconcileExternalNetwork(openStackCluster *infrav1.OpenStackCl
110
110
Name : networkList [0 ].Name ,
111
111
Tags : networkList [0 ].Tags ,
112
112
}
113
- s .scope .Logger ().Info ("External network found" , "network id" , networkList [0 ].ID )
113
+ s .scope .Logger ().Info ("External network found" , "id" , networkList [0 ].ID )
114
114
return nil
115
115
}
116
116
return fmt .Errorf ("found %d external networks, which should not happen" , len (networkList ))
@@ -131,8 +131,7 @@ func (s *Service) ReconcileNetwork(openStackCluster *infrav1.OpenStackCluster, c
131
131
openStackCluster .Status .Network .ID = res .ID
132
132
openStackCluster .Status .Network .Name = res .Name
133
133
openStackCluster .Status .Network .Tags = res .Tags
134
- sInfo := fmt .Sprintf ("Reuse Existing Network %s with id %s" , res .Name , res .ID )
135
- s .scope .Logger ().V (6 ).Info (sInfo )
134
+ s .scope .Logger ().V (6 ).Info ("Reusing existing network" , "name" , res .Name , "id" , res .ID )
136
135
return nil
137
136
}
138
137
@@ -195,7 +194,7 @@ func (s *Service) DeleteNetwork(openStackCluster *infrav1.OpenStackCluster, clus
195
194
196
195
func (s * Service ) ReconcileSubnet (openStackCluster * infrav1.OpenStackCluster , clusterName string ) error {
197
196
if openStackCluster .Status .Network == nil || openStackCluster .Status .Network .ID == "" {
198
- s .scope .Logger ().V (4 ).Info ("No need to reconcile network components since no network exists. " )
197
+ s .scope .Logger ().V (4 ).Info ("No need to reconcile network components since no network exists" )
199
198
return nil
200
199
}
201
200
@@ -223,7 +222,7 @@ func (s *Service) ReconcileSubnet(openStackCluster *infrav1.OpenStackCluster, cl
223
222
}
224
223
} else if len (subnetList ) == 1 {
225
224
subnet = & subnetList [0 ]
226
- s .scope .Logger ().V (6 ).Info (fmt . Sprintf ( "Reuse existing subnet %s with id %s " , subnetName , subnet .ID ) )
225
+ s .scope .Logger ().V (6 ).Info ("Reusing existing subnet" , "name" , subnet . Name , "id " , subnet .ID )
227
226
}
228
227
229
228
openStackCluster .Status .Network .Subnets = []infrav1.Subnet {
0 commit comments