Run these commands:
pulp file repository create --name cli_test_file_repository
pulp file repository version show --repository cli_test_file_repository --version 0
You'll see for the repository version show command, there are 3 requests to the server:
[05/May/2021 13:59:38] "GET /pulp/api/v3/repositories/file/file/?name=cli_test_file_repository&offset=0&limit=1 HTTP/1.0" 200 552
[05/May/2021 13:59:38] "GET /pulp/api/v3/repositories/file/file/346223ec-10f3-414c-b9e6-e0bd777a7402/versions/0 HTTP/1.0" 301 0
[05/May/2021 13:59:39] "GET /pulp/api/v3/repositories/file/file/346223ec-10f3-414c-b9e6-e0bd777a7402/versions/0/ HTTP/1.0" 200 322
The first and third I expect. The second one I do not. Looks like the CLI is forming the href without the slash at the end.
Run these commands:
You'll see for the repository version show command, there are 3 requests to the server:
The first and third I expect. The second one I do not. Looks like the CLI is forming the href without the slash at the end.