From 3b60fa1238491b1bf41b491b16adbb459cee0912 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Tue, 15 Jan 2019 15:48:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=89=8D=E7=AB=AF=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E6=8F=8F=E8=BF=B0=E5=AD=97=E6=AE=B5=E5=90=8E=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E6=B2=A1=E6=9C=89=E7=9B=B8=E5=85=B3=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/compute/models/secgroups.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/compute/models/secgroups.go b/pkg/compute/models/secgroups.go index dec208753a..ddc1c311c9 100644 --- a/pkg/compute/models/secgroups.go +++ b/pkg/compute/models/secgroups.go @@ -92,6 +92,8 @@ func (self *SSecurityGroup) GetExtraDetails(ctx context.Context, userCred mcclie } extra.Add(jsonutils.NewInt(int64(len(self.GetGuests()))), "guest_cnt") extra.Add(jsonutils.NewString(self.getSecurityRuleString("")), "rules") + extra.Add(jsonutils.NewString(self.getSecurityRuleString("in")), "in_rules") + extra.Add(jsonutils.NewString(self.getSecurityRuleString("out")), "out_rules") return extra, nil }