Skip to content

Commit

Permalink
Merge pull request #871 from hidekazuna/use_logger_field
Browse files Browse the repository at this point in the history
🏃 Refactor: use Service struct field more
  • Loading branch information
k8s-ci-robot authored May 25, 2021
2 parents 73f64b9 + c43f7c1 commit 5281717
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 157 deletions.
6 changes: 3 additions & 3 deletions pkg/cloud/services/compute/bastion.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (s *Service) CreateBastion(openStackCluster *infrav1.OpenStackCluster, clus
RootVolume: openStackCluster.Spec.Bastion.Instance.RootVolume,
}

securityGroups, err := getSecurityGroups(s, openStackCluster.Spec.Bastion.Instance.SecurityGroups)
securityGroups, err := s.getSecurityGroups(openStackCluster.Spec.Bastion.Instance.SecurityGroups)
if err != nil {
return nil, err
}
Expand All @@ -45,7 +45,7 @@ func (s *Service) CreateBastion(openStackCluster *infrav1.OpenStackCluster, clus
var nets []infrav1.Network
if len(openStackCluster.Spec.Bastion.Instance.Networks) > 0 {
var err error
nets, err = getServerNetworks(s.networkClient, openStackCluster.Spec.Bastion.Instance.Networks)
nets, err = s.getServerNetworks(openStackCluster.Spec.Bastion.Instance.Networks)
if err != nil {
return nil, err
}
Expand All @@ -59,7 +59,7 @@ func (s *Service) CreateBastion(openStackCluster *infrav1.OpenStackCluster, clus
}
input.Networks = &nets

out, err := createInstance(s, openStackCluster, clusterName, input)
out, err := s.createInstance(openStackCluster, clusterName, input)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit 5281717

Please sign in to comment.