Bug #28869
closedhammer help --organization-id should be "Set the current location context for the request"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1691436
Description of problem:
- hammer location create do not add location to the specified organization
Version-Release number of selected component (if applicable):
- Satellite 6.4 and 6.5
How reproducible:
- always
Steps to Reproduce:
hammer> location list
---|------------------|------------------|------------
ID | TITLE | NAME | DESCRIPTION
---|------------------|------------------|------------
2 | Default Location | Default Location |
---|------------------|------------------|------------
hammer> organization list
---|----------------------|----------------------|-------------|----------------------|------------
ID | TITLE | NAME | DESCRIPTION | LABEL | DESCRIPTION
---|----------------------|----------------------|-------------|----------------------|------------
1 | Default Organization | Default Organization | | Default_Organization |
---|----------------------|----------------------|-------------|----------------------|------------
hammer> location create --name Test1 --organization-id 1
Location created.
hammer> location list --organization-id 1
---|------------------|------------------|------------
ID | TITLE | NAME | DESCRIPTION
---|------------------|------------------|------------
2 | Default Location | Default Location |
---|------------------|------------------|------------
hammer> location list
---|------------------|------------------|------------
ID | TITLE | NAME | DESCRIPTION
---|------------------|------------------|------------
2 | Default Location | Default Location |
4 | Test1 | Test1 |
---|------------------|------------------|------------
Actual results:
- location is not added in the specified Org 1
Expected results:
- location should be added in the specified Org 1
Additional info:
need to use the below command for now:
- hammer location add-organization --name Test1 --organization-id 1