Commit 4012b596 authored by Marko Kuder's avatar Marko Kuder
Browse files

fix resource_update throwing "not found" and creating new resource

parent d18d5487
......@@ -69,12 +69,6 @@ def opsi_action_resource_update(context, data_dict):
'datastore_active' not in data_dict):
data_dict['datastore_active'] = resource.extras['datastore_active']
#OPSI edit: check access appends package and its id to data_dict which may cause incorrect generation of resource filenames, we remove it
if data_dict.get('package', ''):
del data_dict['package']
if data_dict.get('id', ''):
del data_dict['id']
#remove date if it is empty (should be saved as individual resource)
if data_dict.get('date', 'not existing') == '':
del data_dict['date']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment