From a5b44df05030b596a29fa3b4a6f2275c8150d10b Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Tue, 21 Apr 2020 22:37:06 +0800 Subject: [PATCH] fix: policy details should carry updated_at and created_at fields --- pkg/mcclient/modules/mod_policies.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/mcclient/modules/mod_policies.go b/pkg/mcclient/modules/mod_policies.go index cc6f3693ae..95f17d54e6 100644 --- a/pkg/mcclient/modules/mod_policies.go +++ b/pkg/mcclient/modules/mod_policies.go @@ -30,7 +30,7 @@ var Policies SPolicyManager func policyReadFilter(session *mcclient.ClientSession, s jsonutils.JSONObject, query jsonutils.JSONObject) (jsonutils.JSONObject, error) { ss := s.(*jsonutils.JSONDict) - ret := ss.CopyIncludes("id", "type", "enabled", "domain_id", "domain", "project_domain", "can_update", "can_delete", "is_public", "description", "delete_fail_reason", "update_fail_reason") + ret := ss.CopyIncludes("id", "type", "enabled", "domain_id", "domain", "project_domain", "can_update", "can_delete", "is_public", "description", "delete_fail_reason", "update_fail_reason", "created_at", "updated_at") blobJson, _ := ss.Get("blob") if blobJson != nil { policy := rbacutils.SRbacPolicy{}