Skip to content

Commit

Permalink
Merge pull request #695 from fao89/remote_6346
Browse files Browse the repository at this point in the history
Return username and password when requesting Remote
  • Loading branch information
bmbouter committed May 11, 2020
2 parents 783d035 + 5688324 commit aadf1d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES/6346.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Remote fields `username` and `password` show up in:
REST docs, API responses, and are available in the bindings.
1 change: 1 addition & 0 deletions CHANGES/plugin_api/6346.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fields: `username` and `password` will be returned to the rest API user requesting a `Remote`
2 changes: 0 additions & 2 deletions pulpcore/app/serializers/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ class RemoteSerializer(ModelSerializer):
)
username = serializers.CharField(
help_text="The username to be used for authentication when syncing.",
write_only=True,
required=False,
allow_null=True,
)
password = serializers.CharField(
help_text="The password to be used for authentication when syncing.",
write_only=True,
required=False,
allow_null=True,
)
Expand Down

0 comments on commit aadf1d6

Please sign in to comment.