pulp-ansible 0.29.1__py3-none-any.whl → 0.29.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulp_ansible/app/__init__.py +1 -1
- pulp_ansible/app/serializers.py +16 -0
- {pulp_ansible-0.29.1.dist-info → pulp_ansible-0.29.2.dist-info}/METADATA +1 -1
- {pulp_ansible-0.29.1.dist-info → pulp_ansible-0.29.2.dist-info}/RECORD +8 -8
- {pulp_ansible-0.29.1.dist-info → pulp_ansible-0.29.2.dist-info}/WHEEL +0 -0
- {pulp_ansible-0.29.1.dist-info → pulp_ansible-0.29.2.dist-info}/entry_points.txt +0 -0
- {pulp_ansible-0.29.1.dist-info → pulp_ansible-0.29.2.dist-info}/licenses/LICENSE +0 -0
- {pulp_ansible-0.29.1.dist-info → pulp_ansible-0.29.2.dist-info}/top_level.txt +0 -0
pulp_ansible/app/__init__.py
CHANGED
pulp_ansible/app/serializers.py
CHANGED
|
@@ -665,6 +665,22 @@ class CollectionVersionSerializer(ContentChecksumSerializer, CollectionVersionUp
|
|
|
665
665
|
|
|
666
666
|
creating = True
|
|
667
667
|
|
|
668
|
+
def __init__(self, *args, **kwargs):
|
|
669
|
+
super().__init__(*args, **kwargs)
|
|
670
|
+
try:
|
|
671
|
+
request = self.context["request"]
|
|
672
|
+
if request.method != "GET":
|
|
673
|
+
return
|
|
674
|
+
except (AttributeError, TypeError, KeyError):
|
|
675
|
+
# The serializer was not initialized with request context.
|
|
676
|
+
return
|
|
677
|
+
query_params = request.query_params
|
|
678
|
+
if self.include_arg_name in query_params or self.exclude_arg_name in query_params:
|
|
679
|
+
return
|
|
680
|
+
for fieldname in ["files", "manifest", "docs_blob", "contents"]:
|
|
681
|
+
# Redact these fields by default as they have no size limit.
|
|
682
|
+
self.fields.pop(fieldname)
|
|
683
|
+
|
|
668
684
|
def validate(self, data):
|
|
669
685
|
"""Run super() validate if creating, else return data."""
|
|
670
686
|
# This validation is for creating CollectionVersions
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
pulp_ansible/__init__.py,sha256=WXL3JyOZzh4tALN4OBNgqj412O2LXVr8iYSn14Av0_o,67
|
|
2
2
|
pulp_ansible/pytest_plugin.py,sha256=hi9crI7QGghXCItNx27pW6KoXMzZqhAqAUstpJrsmlA,9105
|
|
3
|
-
pulp_ansible/app/__init__.py,sha256=
|
|
3
|
+
pulp_ansible/app/__init__.py,sha256=vzl_f13itT0-OcytydGkM56trMB2QYSwUuzpVJj-6Oo,308
|
|
4
4
|
pulp_ansible/app/constants.py,sha256=cRrWMbJU-v1nCY2CjmGTOFGzz5aggn4ZKIs4-zeYADQ,78
|
|
5
5
|
pulp_ansible/app/downloaders.py,sha256=0xrAXzhTMJ6ywvs6XyYNAKvRzYb_UZR6A5_WgaHvuiE,8331
|
|
6
6
|
pulp_ansible/app/fields.py,sha256=yV3FL-47K-nxbiBxgzWi1hk3tfLsRdgic59LiwT2Fvs,624
|
|
@@ -8,7 +8,7 @@ pulp_ansible/app/global_access_conditions.py,sha256=ayV_LbQIa4ReuDYQycdDY7WysfGk
|
|
|
8
8
|
pulp_ansible/app/logutils.py,sha256=My4XivZMYLKeJqPHFwk3pIZSGlspALhI93vZxwWzlSY,846
|
|
9
9
|
pulp_ansible/app/modelresource.py,sha256=fJ_njrSWdftFQpA54e6mdoIWG_zqBjpp2TkkyU8Y7D4,7181
|
|
10
10
|
pulp_ansible/app/models.py,sha256=CrEcVxQUlb6V_d9l7_as7_Gi6TrBuJ_xJLhFCR_5jew,22709
|
|
11
|
-
pulp_ansible/app/serializers.py,sha256=
|
|
11
|
+
pulp_ansible/app/serializers.py,sha256=28lwMvLa3D-i4cekaIx50ffHUU78OfoDBlwdcTSTWyI,36670
|
|
12
12
|
pulp_ansible/app/settings.py,sha256=ArDsI7VezOpKM9iFqxXb6VmEDOtRUS5lfB_oklkcxds,1244
|
|
13
13
|
pulp_ansible/app/urls.py,sha256=gpMqsYPgHfc_6-EySR9ezUnI1F5yklzOVlSz9nlppmY,8697
|
|
14
14
|
pulp_ansible/app/utils.py,sha256=ClI_WvVy73kOZQB2mS8Gftf80Vye7pOxrbodTmPQgmk,1686
|
|
@@ -167,9 +167,9 @@ pulp_ansible/tests/unit/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
|
|
|
167
167
|
pulp_ansible/tests/unit/migrations/conftest.py,sha256=61n56aJuwEuAcUS27xnmnEDx6Ie7M5zxh851doWm7Ok,438
|
|
168
168
|
pulp_ansible/tests/unit/migrations/test_0057_collection_version_sha256_migrate.py,sha256=NmU-frZNO1qHvhdxfw-bwPTEkqN4Wdc3dEs9dWME47o,2174
|
|
169
169
|
pulp_ansible/tests/unit/migrations/test_x_repo_search_migration.py,sha256=IrC_V_Gss4nqhkdL-60upcEzGcz8IsiI2d-MfUtFY-g,657
|
|
170
|
-
pulp_ansible-0.29.
|
|
171
|
-
pulp_ansible-0.29.
|
|
172
|
-
pulp_ansible-0.29.
|
|
173
|
-
pulp_ansible-0.29.
|
|
174
|
-
pulp_ansible-0.29.
|
|
175
|
-
pulp_ansible-0.29.
|
|
170
|
+
pulp_ansible-0.29.2.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
|
|
171
|
+
pulp_ansible-0.29.2.dist-info/METADATA,sha256=_gFSKHV79dT3iU65Uo-reTciYMRaZDEmTrF1Ick_tDc,3125
|
|
172
|
+
pulp_ansible-0.29.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
173
|
+
pulp_ansible-0.29.2.dist-info/entry_points.txt,sha256=6PFqCdT7Yn7U5MlioYRsyyWbJDcZI2aAJuzc7yXHqGk,119
|
|
174
|
+
pulp_ansible-0.29.2.dist-info/top_level.txt,sha256=5Rrg5DSM_F9wH8vu8Fxjb5EmroC-I8RVKp05fhXH6kQ,13
|
|
175
|
+
pulp_ansible-0.29.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|