mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
Merge pull request #638 in YUNIONIO/onecloud from ~QUXUAN/onecloud:bugfix/qx-secgroup-rule to release/2.3.0
* commit '5c6a5c937516575dc5336d672dd083dd7a99f9d7': 修复规则缺失优先级及描述信息
This commit is contained in:
@@ -281,7 +281,13 @@ func (self *SSecurityGroupRule) String() string {
|
||||
}
|
||||
|
||||
func (self *SSecurityGroupRule) toRule() (*secrules.SecurityRule, error) {
|
||||
return secrules.ParseSecurityRule(self.String())
|
||||
rule, err := secrules.ParseSecurityRule(self.String())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
rule.Description = self.Description
|
||||
rule.Priority = int(self.Priority)
|
||||
return rule, nil
|
||||
}
|
||||
|
||||
func (self *SSecurityGroupRule) SingleRules() ([]secrules.SecurityRule, error) {
|
||||
|
||||
Reference in New Issue
Block a user