@@ -110,7 +110,7 @@ func (s *Service) ReconcileExternalNetwork(openStackCluster *infrav1.OpenStackCl
110110 Name : networkList [0 ].Name ,
111111 Tags : networkList [0 ].Tags ,
112112 }
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 )
114114 return nil
115115 }
116116 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
131131 openStackCluster .Status .Network .ID = res .ID
132132 openStackCluster .Status .Network .Name = res .Name
133133 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 )
136135 return nil
137136 }
138137
@@ -195,7 +194,7 @@ func (s *Service) DeleteNetwork(openStackCluster *infrav1.OpenStackCluster, clus
195194
196195func (s * Service ) ReconcileSubnet (openStackCluster * infrav1.OpenStackCluster , clusterName string ) error {
197196 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" )
199198 return nil
200199 }
201200
@@ -223,7 +222,7 @@ func (s *Service) ReconcileSubnet(openStackCluster *infrav1.OpenStackCluster, cl
223222 }
224223 } else if len (subnetList ) == 1 {
225224 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 )
227226 }
228227
229228 openStackCluster .Status .Network .Subnets = []infrav1.Subnet {
0 commit comments