Project

General

Profile

Actions

Bug #17250

closed

Unable to remove all locations or organizations from a domain

Added by Tomáš Strachota over 7 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
Other commands
Target version:
-
Difficulty:
Triaged:
No
Team Backlog:
Marek
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Description of problem:
the parameters --organizations|--locations; --organization-ids|--location-ids obviously can't handle an empty string passed as a parameter. Despite the resulting message is "Domain updated".

Version-Release number of selected component (if applicable):
hammer-cli 0.8.0
hammer-cli-foreman 0.8.0
foreman 1.13.0

Steps to Reproduce:

# hammer -u admin -p changeme domain info --id 7
Id:          7
Name:        rplevka_dom_3
Description: 
DNS Id:      
Subnets:     

Parameters:  

Created at:  2016/10/17 11:08:16
Updated at:  2016/10/17 11:08:16

# hammer -u admin -p changeme domain update --id 7 --location-ids="2,4" 
Domain [rplevka_dom_3] updated

# hammer -u admin -p changeme domain info --id 7
Id:          7
Name:        rplevka_dom_3
Description: 
DNS Id:      
Subnets:     

Locations:   
    Default Location
    rplevka_loc
Parameters:  

Created at:  2016/10/17 11:08:16
Updated at:  2016/10/17 11:08:16

# hammer -u admin -p changeme domain update --id 7 --location-ids="4" 
Domain [rplevka_dom_3] updated

# hammer -u admin -p changeme domain info --id 7
Id:          7
Name:        rplevka_dom_3
Description: 
DNS Id:      
Subnets:     

Locations:   
    rplevka_loc
Parameters:  

Created at:  2016/10/17 11:08:16
Updated at:  2016/10/17 11:08:16

# hammer -u admin -p changeme domain update --id 7 --location-ids="" 
Domain [rplevka_dom_3] updated

# hammer -u admin -p changeme domain info --id 7
Id:          7
Name:        rplevka_dom_3
Description: 
DNS Id:      
Subnets:     

Locations:   
    rplevka_loc
Parameters:  

Created at:  2016/10/17 11:08:16
Updated at:  2016/10/17 11:08:16


Related issues 1 (0 open1 closed)

Related to Hammer CLI - Bug #17252: Unable to set empty parameter via hammerClosedMartin Bacovsky11/07/2016Actions
Actions #1

Updated by Tomáš Strachota over 7 years ago

  • Subject changed from Unable to remove all locations or organizations from a domain to Unable to remove all locations or organizations from a domain
  • Target version set to 115
Actions #2

Updated by Tomáš Strachota over 7 years ago

  • Related to Bug #17252: Unable to set empty parameter via hammer added
Actions #3

Updated by Rahul Bajaj almost 6 years ago

@Tomas, is this still re-producible? I tried doing the same on my instance, everything works fine. Am I missing anything here?

Actions #4

Updated by Tomáš Strachota almost 6 years ago

It might have been fixed as a part of: http://projects.theforeman.org/issues/21768/

Actions #5

Updated by Oleh Fedorenko about 5 years ago

  • Status changed from New to Closed
  • Triaged set to No

Closing since it's not reproducible anymore and seems to be fixed.

Actions

Also available in: Atom PDF