Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:Update
cobbler
remove-redundant-json-suffix.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File remove-redundant-json-suffix.diff of Package cobbler
diff --git a/cobbler/modules/serializers/file.py b/cobbler/modules/serializers/file.py index c57eded5c..c3362af35 100644 --- a/cobbler/modules/serializers/file.py +++ b/cobbler/modules/serializers/file.py @@ -71,7 +71,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) @@ -91,7 +90,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