Skip to content

Commit

Permalink
fix: policy details should carry updated_at and created_at fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu Jian committed Apr 21, 2020
1 parent d9575b2 commit 4c313f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mcclient/modules/mod_policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "public_scope", "shared_domains")
ret := ss.CopyIncludes("id", "type", "enabled", "domain_id", "domain", "project_domain", "can_update", "can_delete", "is_public", "description", "delete_fail_reason", "update_fail_reason", "public_scope", "shared_domains", "created_at", "updated_at")
blobJson, _ := ss.Get("blob")
if blobJson != nil {
policy := rbacutils.SRbacPolicy{}
Expand Down

0 comments on commit 4c313f5

Please sign in to comment.