Skip to content

Commit acae740

Browse files
committed
Fixed bug when listing a newly created storlet static policy
1 parent 52c0144 commit acae740

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • crystal_dashboard/dashboards/crystal/policies

crystal_dashboard/dashboards/crystal/policies/tabs.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ def get_static_policies_data(self):
5454
inst['reverse'] = 'Proxy Node'
5555
elif inst['reverse'] == 'object':
5656
inst['reverse'] = 'Storage Node'
57+
if 'post' not in inst:
58+
inst['post'] = False
59+
if 'head' not in inst:
60+
inst['head'] = False
61+
if 'delete' not in inst:
62+
inst['delete'] = False
63+
5764
if self.request.user.project_name == local_settings.CRYSTAL_ADMIN_PROJECT:
5865
ret.append(policies_models.StaticPolicy(inst['id'], inst['target_id'], inst['target_name'], inst['filter_name'],
5966
inst['object_type'], inst['object_size'], inst['object_tag'],

0 commit comments

Comments
 (0)