Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1691436 - "hammer location create" does not add location to the specified organization
Summary: "hammer location create" does not add location to the specified organization
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Organizations and Locations
Version: 6.4
Hardware: All
OS: All
medium
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-21 15:35 UTC by Nithin Thomas
Modified: 2019-03-26 17:29 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Nithin Thomas 2019-03-21 15:35:42 UTC
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


Note You need to log in before you can comment on or make changes to this bug.