Actions
Issue #1594
closeddeprecation warnings when running migrations on EL7
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.12.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 15
Quarter:
Description
Ensuring the admin role and user are in place.
/usr/lib/python2.7/site-packages/pulp/server/managers/auth/role/cud.py:58: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
Role.get_collection().save(create_me)
/usr/lib/python2.7/site-packages/pulp/server/managers/auth/role/cud.py:316: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
Role.get_collection().save(role)
ensure admin
/usr/lib/python2.7/site-packages/mongoengine/document.py:324: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
object_id = collection.save(doc, **write_concern)
/usr/lib/python2.7/site-packages/pulp/server/managers/auth/permission/cud.py:43: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
Permission.get_collection().save(create_me)
/usr/lib/python2.7/site-packages/pulp/server/managers/auth/permission/cud.py:141: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
Permission.get_collection().save(permission)
/usr/lib/python2.7/site-packages/mongoengine/document.py:367: DeprecationWarning: update is deprecated. Use replace_one, update_one or update_many instead.
upsert=upsert, **write_concern)
Related issues
Actions
Suppress DeprecationWarnings when running pulp-manage-db
closes #1594 https://pulp.plan.io/issues/1594