Skip to content

Commit

Permalink
Static policies object name
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanBoronat committed Nov 14, 2017
1 parent ba2ecc9 commit bbf0cc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/filters/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ def filter_deploy(request, filter_id, project_id, container=None, swift_object=N
"object_type": params['object_type'],
"object_size": params['object_size'],
"object_tag": params['object_tag'],
"object_name": params['object_name'],
"execution_order": policy_id,
"params": params['params'],
"callable": False
Expand Down
3 changes: 3 additions & 0 deletions api/policies/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def policy_list(request):
'object_type': policy['object_type'],
'object_size': policy['object_size'],
'object_tag': policy['object_tag'],
'object_name': policy['object_name'],
'execution_server': policy['execution_server'],
'reverse': policy['reverse'],
'execution_order': policy['execution_order'],
Expand Down Expand Up @@ -153,6 +154,7 @@ def policy_list(request):
"object_type": data['object_type'],
"object_size": data['object_size'],
"object_tag": data['object_tag'],
"object_name": data['object_name'],
"transient": data['transient'],
"policy_location": policy_location,
"status": 'Alive'}
Expand Down Expand Up @@ -284,6 +286,7 @@ def deploy_static_policy(request, r, parsed_rule):
"object_type": "",
"object_size": "",
"object_tag": "",
"object_name": "",
"execution_order": policy_id,
"params": "",
"callable": False
Expand Down

0 comments on commit bbf0cc2

Please sign in to comment.