Skip to content

Commit

Permalink
Fix IngexOutOfRange error if managedSecurityGroups:true (openshift#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
eromanova authored and luis5tb committed Feb 15, 2019
1 parent 42ae205 commit 4de24bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloud/openstack/clients/secgroupservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func (s *SecGroupService) createRule(r openstackconfigv1.SecurityGroupRule) (ope
}

func (s *SecGroupService) convertOSSecGroupToConfigSecGroup(osSecGroup groups.SecGroup) *openstackconfigv1.SecurityGroup {
rules := make([]openstackconfigv1.SecurityGroupRule, 0, len(osSecGroup.Rules))
rules := make([]openstackconfigv1.SecurityGroupRule, len(osSecGroup.Rules))
for i, rule := range osSecGroup.Rules {
rules[i] = s.convertOSSecGroupRuleToConfigSecGroupRule(rule)
}
Expand Down

0 comments on commit 4de24bb

Please sign in to comment.