Project

General

Profile

Actions

Bug #28864

closed

hammer repository info commands shows "Http Proxy Policy" in products section instead of showing it in Http Proxy section.

Added by Chris Roberts almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
trivial
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from bz:

Test Steps:
- Create Products with repositories.
- Assign Http proxy to products/repositories.

Observation:
- "hammer repository info" commands shows "Http Proxy Policy" in products
section instead of showing it in Http Proxy section.

Actual Result:

hammer> repository info --id 48
ID: 48
Name: repo1
Label: repo1
Organization: Default Organization
Red Hat Repository: no
Content Type: yum
Mirror on Sync: yes
URL: https://oijdofs
Publish Via HTTP: yes
Published At: http://hostname.example.com/pulp/repos/Default_Organization/Library/custom/pro1/repo1/
Relative Path: Default_Organization/Library/custom/pro1/repo1
Download Policy: on_demand
Http Proxy:
ID: 5
Name: proxy5
Product:
ID: 62
Name: pro1
Http Proxy Policy: use_selected_http_proxy
GPG Key:

Sync:
Status: Not Synced
Created: 2020/01/21 05:20:13
Updated: 2020/01/21 06:33:29
Content Counts:
Packages: 0
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0

Expected result:

hammer> repository info --id 48
ID: 48
Name: repo1
Label: repo1
Organization: Default Organization
Red Hat Repository: no
Content Type: yum
Mirror on Sync: yes
URL: https://oijdofs
Publish Via HTTP: yes
Published At: http://hostname.example.com/pulp/repos/Default_Organization/Library/custom/pro1/repo1/
Relative Path: Default_Organization/Library/custom/pro1/repo1
Download Policy: on_demand
Http Proxy:
ID: 5
Name: proxy5
Http Proxy Policy: use_selected_http_proxy
Product:
ID: 62
Name: pro1
GPG Key:

Sync:
Status: Not Synced
Created: 2020/01/21 05:20:13
Updated: 2020/01/21 06:33:29
Content Counts:
Packages: 0
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0

Additional info:
- When repository uses global proxy then Http Proxy's Id is not shown in repository info command.

hammer> repository info --id 55
ID: 55
Name: Repo1_Proxy
Label: Repo1_Proxy
Organization: Default Organization
Red Hat Repository: no
Content Type: yum
Mirror on Sync: yes
URL:
Publish Via HTTP: yes
Published At: http://hostname.example.com/pulp/repos/Default_Organization/Library/custom/Prod_proxy1/Repo1_Proxy/
Relative Path: Default_Organization/Library/custom/Prod_proxy1/Repo1_Proxy
Download Policy: on_demand
Http Proxy:
Name: proxy1
Product:
ID: 65
Name: Prod_proxy1
Http Proxy Policy: global_default_http_proxy
GPG Key:

Sync:
Status: Not Synced
Created: 2020/01/21 07:16:13
Updated: 2020/01/21 07:16:14
Content Counts:
Packages: 0
Source RPMS: 0
Package Groups: 0
Errata: 0
Module Streams: 0

Actions

Also available in: Atom PDF