Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:Update
cobbler.17400
remove-redundant-json-suffix.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File remove-redundant-json-suffix.diff of Package cobbler.17400
Index: cobbler-3.1.2/cobbler/modules/serializers/file.py =================================================================== --- cobbler-3.1.2.orig/cobbler/modules/serializers/file.py +++ cobbler-3.1.2/cobbler/modules/serializers/file.py @@ -72,7 +72,6 @@ def serialize_item(collection, item): sort_keys = False indent = None - filename += ".json" _dict = item.to_dict() fd = open(filename, "w+") data = simplejson.dumps(_dict, encoding="utf-8", sort_keys=sort_keys, indent=indent) @@ -92,7 +91,6 @@ def serialize_delete(collection, item): collection_types = collection.collection_types() filename = os.path.join(libpath, collection_types, item.name + ".json") - filename += ".json" if os.path.exists(filename): os.remove(filename)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor